[rfc][1/3] Remote core file generation: BFD support
Ulrich Weigand
uweigand@de.ibm.com
Fri Oct 21 20:58:00 GMT 2011
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
More information about the Gdb-patches
mailing list