This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFC] Setting the architecture from a core file
- From: Nick Clifton <nickc at redhat dot com>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb at sources dot redhat dot com, binutils at sources dot redhat dot com
- Date: Thu, 30 Oct 2003 11:00:23 +0000
- Subject: Re: [RFC] Setting the architecture from a core file
- References: <200310241528.h9OFS3Cb001732@elgar.kettenis.dyndns.org>
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 ?