From: Kevin Buettner <kevinb@redhat.com>
To: Stephen & Linda Smith <ischis2@cox.net>
Cc: gdb@sources.redhat.com
Subject: Re: shared library support hookin the remote.c
Date: Thu, 01 Jul 2004 17:58:00 -0000 [thread overview]
Message-ID: <20040701105812.44b85b9b@saguaro> (raw)
In-Reply-To: <40E0CC21.1020401@cox.net>
On Mon, 28 Jun 2004 18:55:45 -0700
Stephen & Linda Smith <ischis2@cox.net> wrote:
> Kevin Buettner wrote:
>
> > How does the remote target communicate the necessary details to GDB
> >
> >then?
> >
> >It sounds to me as though you want to add the hook so that you can add
> >a private protocol extension.
> >
> >IMO, it's better to hash out the details of a public remote protocol
> >extension for shared library support.
> >
> That would be my preference, but I haven't figured out a generic way.
> Here is the basic problem is that the
> remote protocol has no notion of shared libraries or of segments (TEXT,
> BSS, DATA, etc). Can someone
> on this list think of a generic way of getting this data?
If you can have the stub report both the original and adjusted address
for the segments of a particular load object, GDB should be able to
determine which section(s) those segments belong to. (Take a look at the
FR-V shared library support.)
> A second problem is that the number and names of the segments doesn't
> appear to be consistent. It was for this
> reason that I was thinking of making the protocol a target specific one
> that supports the solib interface.
I wouldn't worry about the names; I don't think there'll be any need to
communicate those. As for the number of segments, the protocol should
be designed to handle an arbitrary number of segments.
> >... I'd like to first understand how communication of shared library information
> >between GDB and the stub is accomplished and what the protocol looks
> >like.
> >
>
> I assume you don't mean how the published protocol works.
>
> What I didn't in the passed, was to use a q packet. If I read the spec
> correctly was to use that packet type to find out if
> there were any libraries and to find out the segment addersses.
>
> I don't mind making it a public interface, but from the conversation
> three years ago, I got the idea that the maintainers
> weren't especially keen on making it part of the general (i.e remote.c)
> code base.
I don't recall. However, if the protocol is general enough to be usable
by a variety of targets, I see no reason for not including it in remote.c.
After all, qSymbol support is present in remote.c and that's only used for
some thread implementations. It would be good to get buy-in from the
maintainer of remote.c before you start though.
Kevin
next prev parent reply other threads:[~2004-07-01 17:58 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-20 21:05 shared library support Stephen P. Smith
2004-05-21 20:49 ` Stephen P. Smith
2004-06-11 21:14 ` Kevin Buettner
2004-06-24 1:55 ` shared library support hookin the remote.c Stephen & Linda Smith
2004-06-28 21:44 ` Kevin Buettner
2004-06-28 21:45 ` Stephen P. Smith
2004-06-29 1:55 ` Kevin Buettner
2004-06-29 1:56 ` Stephen & Linda Smith
2004-07-01 17:58 ` Kevin Buettner [this message]
2004-07-02 20:20 ` Andrew Cagney
2004-07-02 21:16 ` Stephen P. Smith
2004-07-02 22:30 ` Andrew Cagney
2004-07-13 20:15 ` Stephen P. Smith
2004-07-14 18:30 ` Andrew Cagney
2004-07-14 18:44 ` Stephen & Linda Smith
2004-07-14 19:05 ` Dave Korn
2004-07-14 19:29 ` Andrew Cagney
2004-07-02 21:25 ` Kevin Buettner
2004-07-02 22:25 ` Andrew Cagney
2004-07-02 23:22 ` Kevin Buettner
2004-07-08 15:04 ` Andrew Cagney
2004-07-28 3:04 ` Kevin Buettner
2004-08-03 14:58 ` Andrew Cagney
2004-06-29 2:13 Stephen & Linda Smith
2004-06-29 6:27 ` Stephen & Linda Smith
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=20040701105812.44b85b9b@saguaro \
--to=kevinb@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=ischis2@cox.net \
/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