Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFC] Extend remote protocol to allow symbol look-up service.
Date: Thu, 26 Apr 2001 14:22:00 -0000	[thread overview]
Message-ID: <3AE89184.6B6BF207@cygnus.com> (raw)
In-Reply-To: <3AE21931.B3602F03@cygnus.com>

Andrew Cagney wrote:
> 
> Michael Snyder wrote:
> [....]
> 
> The protocol appears to overlaps two separate but related operations -
> shared library load and symbol load. If I remember right, a symbol can
> also be loaded using things like ``(gdb) symbol file''.  Is the shared
> library notification even needed and should this be tied to the shared
> library hook?

The shared library notification from gdb to the target simply lets
the target know that new symbols may be available.  The target could
of course use the notification for other purposes (but I don't know
of any).  I could see extending the notification to cover the "symbol-file"
command as well, but since I don't need that, I might leave it for 
someone else to do.

> What happens if the target program has no shared libraries?  Will the
> target still get an oportunity to request a symbol?

No -- I'm aware of that short-coming, but haven't thought of a solution yet.
Perhaps I could send down a symbol file notification from remote_open?


> Could a target encounter a situtation where it needed symbol values
> before it could report back a program status?  The problem is very much
> like the input/output cases where the target is wanting to nest a query
> request within the normal packet flow.  Should input/output and this
> query all use the same mechanism?

I can't see it.  The target may need the symbols earlier, but until the
shared library is loaded, they aren't available.  Should the target just
keep polling gdb for the symbols?  That would be terribly inefficient.
This way, the target won't ask for them until there's at least some 
reason to believe that they might have become available.


  reply	other threads:[~2001-04-26 14:22 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
2001-04-21 16:35 ` Andrew Cagney
2001-04-26 14:22   ` Michael Snyder [this message]
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=3AE89184.6B6BF207@cygnus.com \
    --to=msnyder@cygnus.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.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