This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit/AIX] Fix error when loading core file
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: drow at false dot org (Daniel Jacobowitz)
- Cc: pedro_alves at portugalmail dot pt (Pedro Alves), gdb-patches at sourceware dot org, brobecker at adacore dot com (Joel Brobecker)
- Date: Mon, 28 May 2007 22:00:30 +0200 (CEST)
- Subject: Re: [commit/AIX] Fix error when loading core file
Daniel Jacobowitz wrote:
> On Mon, May 21, 2007 at 03:24:25PM +0200, Ulrich Weigand wrote:
> > Another reason why I like the TARGET_OBJECT_LDINFO approach
> > is that the ldinfo is also present in core files. Using a
> > xfer_partial object allows to cleanly support both native
> > and core file debugging (and it can also be extended to
> > support remote debugging, if we ever want to do that on AIX).
>
> FWIW, that will work with solib-target too; I didn't use a target
> object, but now that you've mentioned it I see that I could have.
> I should have thought of that; the needs are very similar.
>
> Of course, if I want to use a target object for this then I need to
> change the qfDllInfo packet to a qXfer:libraries:read packet, which
> means I can no longer test with my current SymbianOS target - that's
> one reason why I've been avoiding cosmetic changes to the protocol.
> But that's not a showstopper.
>
> What do you think - would the centralized bookkeeping be helpful,
> even though you don't have explicit load and unload reports?
Hmmm, I'm not sure how this would work for core files. It looks like
solib-target would work only for targets that provide
to_get_shared_libraries -- are you suggesting to implement that for
the core file target? I guess that would be a gdbarch callback to
implement the AIX-specific handling?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com