From: Michael Snyder <msnyder@cygnus.com>
To: Jim Blandy <jimb@cygnus.com>
Cc: gdb-patches@sources.redhat.com, jtc@redback.com
Subject: Re: [RFC] Extend remote protocol to allow symbol look-up service.
Date: Thu, 19 Apr 2001 15:07:00 -0000 [thread overview]
Message-ID: <3ADF6190.5238E691@cygnus.com> (raw)
In-Reply-To: <npeluo39md.fsf@zwingli.cygnus.com>
Jim Blandy wrote:
>
> Michael Snyder <msnyder@cygnus.com> writes:
> > Surprising as it may seem, there are circumstances when a remote
> > target stub may need to know the values of symbols in the debuggee.
> > The case that I'm working from is multi-threaded debugging under
> > Solaris and Linux. Both platforms make use of a debugging support
> > library called libthread-db, which exports a debugging interface
> > into the native thread library. It shields the debugger from
> > knowledge about the thread library internals, but in return it
> > needs to know the addresses of thread library data objects in the
> > child, so that it can go rooting around in them.
>
> This sounds half-baked.
>
> libthread-db is something that gets linked into a debugger, not a
> stub. What is libthread-db doing getting linked into a stub?
Because I'd have to add even more new protocol if I put it on
the debugger side. For example, when one thread stops and I need
to stop all the rest. There's no way to express that in the
remote protocol. And even if there was, it would be too slow:
the threads would get all out of sync.
> And if it is on the stub, and there's some sort of dynamic linker
> there on the target, why can't it ask the dynamic linker for the
> symbol values?
Because I'm asking for symbols from the child, which is not
linked into the stub.
next prev parent reply other threads:[~2001-04-19 15:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-17 16:29 Michael Snyder
2001-04-17 18:50 ` Jonathan Larmour
2001-04-19 13:40 ` Jim Blandy
2001-04-19 15:07 ` Michael Snyder [this message]
2001-04-21 16:35 ` Andrew Cagney
2001-04-26 14:22 ` Michael Snyder
2001-04-27 7:54 ` Andrew Cagney
2001-04-21 16:40 ` Andrew Cagney
2001-04-26 14:26 ` Michael Snyder
2001-04-27 8:20 ` Andrew Cagney
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=3ADF6190.5238E691@cygnus.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@cygnus.com \
--cc=jtc@redback.com \
/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