This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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][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


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