This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/11957] cross-target core file registers are not supported
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 30 Aug 2010 11:43:53 -0000
- Subject: [Bug corefiles/11957] cross-target core file registers are not supported
- References: <20100830104504.11957.jan.kratochvil@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.