This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Setting the architecture from a core file


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 ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]