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
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.
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.
<list>
<library name="libc.so.6" textseg="0x40000000"/>
</list>
--
Daniel Jacobowitz
CodeSourcery