This is the mail archive of the gdb-prs@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]

[Bug corefiles/11957] cross-target core file registers are not supported


------- Additional Comments From pedro at codesourcery dot com  2010-08-30 11:43 -------
Looking at bfd/elf64-alpha.c, I don't see any core note 'grok'ing routines,
so it's not surprising that this would only work natively currently.

See below for a relevant snippet of bfd/elf.c that points the way.  For being
host-independent, the bfd backend needs to implement the
elf_backend_grok_prstatus callback, otherwise, we fallback to the host-dependent
elfcore_grok_prstatus.

static bfd_boolean
elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note)
{
  const struct elf_backend_data *bed = get_elf_backend_data (abfd);

  switch (note->type)
    {
    default:
      return TRUE;

    case NT_PRSTATUS:
      if (bed->elf_backend_grok_prstatus)
	if ((*bed->elf_backend_grok_prstatus) (abfd, note))
	  return TRUE;
#if defined (HAVE_PRSTATUS_T)
      return elfcore_grok_prstatus (abfd, note);
#else
      return TRUE;
#endif


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11957

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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