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: Thu, 31 May 2007 23:07:50 +0200 (CEST)
- Subject: Re: [commit/AIX] Fix error when loading core file
Daniel Jacobowitz wrote:
> On Mon, May 28, 2007 at 10:00:30PM +0200, Ulrich Weigand wrote:
> > 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?
>
> Right - that's exactly what I meant. Except that I'm thinking now
> that I made a mistake; I could have added a target object instead,
> and then we could use a gdbarch method to implement that target object
> based on a core file. That's why I haven't followed up on the patch
> yet; I'm going to try re-working it when I get back from vacation.
Sounds good, I think this would indeed work for the AIX case as well.
> As to what the contents of the target object should be, I'm not sure.
> The easiest choice would be the same as the remote protocol format,
> e.g. "Name:HEXSTR,TextSeg=ADDR;Name:HEXSTR,TextSeg=Addr". The other
> alternative would be XML in case we think any flexibility would be
> needed. The nice thing about that is it avoids having to hex-encode
> the name; we can XML-escape it instead, which is easier in common
> cases. Now that we have a nicely simple XML parsing infrastructure I
> like to take advantage of it.
Do we also have infrastructure to *generate* XML? We have to create
those contents in GDB (at least for the core file and AIX native
target cases).
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com