From: Kevin Buettner <kevinb@redhat.com>
To: Joel Brobecker <brobecker@gnat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Tru64 - wrong list of shared libraries
Date: Mon, 24 Jun 2002 19:13:00 -0000 [thread overview]
Message-ID: <1020625021316.ZM21492@localhost.localdomain> (raw)
In-Reply-To: Joel Brobecker <brobecker@gnat.com> "[RFA] Tru64 - wrong list of shared libraries" (Jun 17, 10:47pm)
On Jun 17, 10:47pm, Joel Brobecker wrote:
> * solib-osf.c (open_map): Compute the list of shread libraries
> loaded by the inferior, rather than the list of libraires loaded
> by GDB itself. Otherwise, GDB ends up reading the symbols from
> the wrong shared libraries...
I didn't understand your change at first, but that was due to the fact
that I didn't understand what ldr_my_process() does. I've located some
documentation (via Google) and have remedied that situation. As alluded
to in your ChangeLog entry, ldr_my_process() will retrieve the "unique
identifier" for the current process, i.e. gdb, which is clearly not
correct.
Presumably, the pid component of GDB's inferior_ptid is the same as
the "unique identifier" used by the ldr_ routines. If it's not, then
we ought to be calling a function which does the translation. I don't
know of any such function though, so I think your change is okay. (For
the moment anyway.)
> OK to commit?
Yes, with the following changes...
First, fix the typos in your ChangeLog entry:
s/shread/shared/
s/libraires/libraries/
s/itself. /itself. /
Second, add a comment similar to the following just before the line
that you changed:
/* Note: As originally written, ldr_my_process() was used to obtain
the value for ctxt->proc. This is incorrect, however, since
ldr_my_process() retrieves the "unique identifier" associated
with the current process (i.e. GDB) and not the one being
debugged. Presumably, the pid of the process being debugged is
compatible with the "unique identifier" used by the ldr_
routines, so we use that. */
Thanks,
Kevin
next prev parent reply other threads:[~2002-06-25 2:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 22:47 Joel Brobecker
2002-06-24 19:13 ` Kevin Buettner [this message]
2002-07-02 10:07 ` Joel Brobecker
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=1020625021316.ZM21492@localhost.localdomain \
--to=kevinb@redhat.com \
--cc=brobecker@gnat.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