From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro_alves@portugalmail.pt>
Cc: gdb@sourceware.org
Subject: Re: Win32 gdbserver dll support.
Date: Mon, 30 Apr 2007 02:45:00 -0000 [thread overview]
Message-ID: <20070430024531.GA3880@caradoc.them.org> (raw)
In-Reply-To: <463136E8.8060700@portugalmail.pt>
On Fri, Apr 27, 2007 at 12:34:00AM +0100, Pedro Alves wrote:
> I was trying to avoid doing what you've done with
> solib-target.c the same solib-*.c when native or remote debugging.
> That is, keeping the remote/native vs 'solib target' separate.
That's the bit I liked least too. I don't remember exactly how it
worked, but my intention was to use the same solib module for local or
remote debugging; we could switch Windows to reuse solib-target.c (if
it was simpler that way).
The problem is that there are two solib models. One, SysV's, does not
require any target specific operations. That's a property of the
architecture. The other, which Windows et al use, is (sort of)
independent of the architecture, but requires information from the
target.
The best I could think of was this, which lets the architecture defer
to the target.
> Are you sure that textSeg+dataSeg is enough? That is the lm_info
> marshaling stuff I was talking about. By reading a remote file,
> you let the solib-*.c implementation handle that. Ok, you can
> pass name/value pairs, but then you have to add support for
> the new pairs on solib-target.c ?
Text and data segment addresses were enough for me. I think they
would suffice for Windows, too. But I'm not sure; the way it worked
on SymbianOS was that GDB ended up loading ELF files rather than the
target-format DLLs, and loading DLLs might impose some different
requirements. If it's not enough, maybe we could use the architecture
methods to specialize solib-target.c without cluttering it; it could
be taught to keep track of arbitrary name/value pairs without knowing
what they were. Or maybe there's a better design entirely.
I decided to add the load and unload events, even though they
complicated things a bit, because they're the most common case. On
GNU/Linux the number of loaded libraries is usually relatively small.
On SymbianOS, it's not small - in fact it's mammoth. There's usually
about fifty DLLs, and I was using a serial connection to the target.
So, slow's the word.
> I'll take a deeper look at the patch in a couple of days.
Thanks. So will I. Maybe I can simplify it further.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-04-30 2:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 16:41 Pedro Alves
2007-04-26 22:27 ` Pedro Alves
2007-04-26 22:44 ` Daniel Jacobowitz
2007-04-26 23:34 ` Pedro Alves
2007-04-30 2:45 ` Daniel Jacobowitz [this message]
2007-05-03 15:37 ` Daniel Jacobowitz
2007-05-03 16:11 ` Pedro Alves
2007-05-03 20:08 ` Daniel Jacobowitz
2007-05-03 21:44 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070430024531.GA3880@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=pedro_alves@portugalmail.pt \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox