[commit/AIX] Fix error when loading core file
Ulrich Weigand
uweigand@de.ibm.com
Mon May 28 20:00:00 GMT 2007
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
More information about the Gdb-patches
mailing list