This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fixed shared library handling in solib-pa64.c
- From: "Randolph Chung" <randolph at tausq dot org>
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 6 Aug 2008 06:05:43 -0700
- Subject: Re: [patch] Fixed shared library handling in solib-pa64.c
- References: <20080805221125.A7C2F4E4A@hiauly1.hia.nrc.ca>
On Tue, Aug 5, 2008 at 3:11 PM, John David Anglin
<dave@hiauly1.hia.nrc.ca> wrote:
> The change below fixes the problem referred to in the NEWS file regarding
> the hppa64-hp-hpux11* target. The problem was a NULL load map pointer was
> being passed in the dlgetmodinfo and dlgetname calls. This was causing
> pa64_target_read_memory() to return 0, and as a result the dlgetmodinfo
> call was failing.
>
> It's not entirely clear why the code to find the load map was failing
> but I believe it is because the dynamic loader had not initialized the
> map at the time the call to find the map was made.
I'm sure this worked at one point, but if we can rely on the OS
libraries to do the read it does seem like the right thing to do.
Please commit.
randolph