From: Elena Zannoni <ezannoni@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] solib-svr4.c fetch link map address
Date: Wed, 02 Oct 2002 06:50:00 -0000 [thread overview]
Message-ID: <15770.59227.896710.331823@localhost.redhat.com> (raw)
In-Reply-To: <20021002045239.GA912@nevyn.them.org>
Daniel Jacobowitz writes:
> On Tue, Oct 01, 2002 at 10:28:01PM -0400, Elena Zannoni wrote:
> >
> > This function is used by thread_db.c. Gdb needs to pass the address of
> > the link map to glibc. Glibc will compute the address of a thread
> > local variable, given such address and the offset within the thread
> > local storage at which the variable is stored (gdb gets the offset out
> > of the debug info).
> >
> > The interface for the glibc function is like this:
> >
> > extern td_err_e td_thr_tls_get_addr (const td_thrhandle_t *__th,
> > void *__map_address, size_t __offset,
> > void **__address);
> >
> > The function loops through the link maps, and returns the address of
> > the one corresponding to the given objfile. Note that this function
> > takes into account that objfile can be the main executable, not just a
> > shared library. The main executable has always an empty name field in
> > the linkmap.
>
> How is the interface in thread_db going to look?
>
> Having finally gotten gdbserver thread support going, I don't want it
> to lose features; so I'm going to need to communicate the necessary
> information for these libthread_db queries to/from it somehow. I'm not
> clear how that should look yet.
>
I am preparing the rest of the patch. Hold on. I eventually fell
asleep last night...:-(
Elena
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-10-02 13:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-01 19:30 Elena Zannoni
2002-10-01 21:52 ` Daniel Jacobowitz
2002-10-02 6:50 ` Elena Zannoni [this message]
2002-10-02 10:28 ` Kevin Buettner
2002-10-02 11:42 ` Elena Zannoni
2002-10-02 18:45 ` Elena Zannoni
2002-10-02 20:24 ` Kevin Buettner
2002-10-02 21:28 ` Daniel Jacobowitz
2002-10-21 11:43 ` Elena Zannoni
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=15770.59227.896710.331823@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=drow@mvista.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