[RFC] Setting the architecture from a core file

Nick Clifton nickc@redhat.com
Thu Oct 30 11:09:00 GMT 2003


Hi Mark,

> My pending changes for core file support based on register sets
> require[1] that we will be able to detect the OS/ABI variant from the
> core file.  Currently we fail to do this for most, if not all, NetBSD
> ELF targets.  It's possible to detect a NetBSD ELF core file by
> looking whether certian NetBSD-specific notes are present.  I can do
> all the work from gdb/osabi.c:generic_elf_osabi_sniff_tag_sections,
> but there is also the possibility to add a pseudosection in
> bfd/elf.c:elfcore_grok_netbsd_procinfo().  I'm leaning towards the
> latter since it avoids duplicating code and it fits better in the way
> how things are done in general in BFD and GDB.  But perhaps people
> have a different opinion?

No, I think that the latter method would be best.

Cheers
        Nick

PS.  Are you officially submitting the patch you attached to your
email ?



More information about the Gdb mailing list