This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc][1/3] Remote core file generation: BFD support
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: mark dot kettenis at xs4all dot nl (Mark Kettenis)
- Cc: gdb-patches at sourceware dot org, binutils at sourceware dot org
- Date: Fri, 21 Oct 2011 22:53:38 +0200 (CEST)
- Subject: Re: [rfc][1/3] Remote core file generation: BFD support
Mark Kettenis wrote:
> > The patch in addition implements the callback for ARM Linux.
>
> There's a bit of a problem with this diff. You're installing the
> callback into the generic ARM vector, but the notes you're writing out
> are (almost certainly) Linux-specific.
Well, the routine is used to write notes named "CORE" with a note type
that is passed in as parameter (NT_PRPSINFO or NT_PRSTATUS). I think
the only OS on ARM that uses this particular note name/type is Linux.
(OpenBSD for example uses completely different notes ...)
Do you know of any OS that uses a note of the same name and type,
but with different contents?
Interestingly enough, at the same place where I installed the new
routine, routines to *read* those core file notes were already present
(elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo).
Also, the PPC implementation of elf_backend_write_core_note is likewise
installed into the generic PowerPC vector.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com