This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFA] am33_2.0-linux-gnu core file update
- From: Kevin Buettner <kevinb at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 15 Dec 2011 14:11:43 -0700
- Subject: [RFA] am33_2.0-linux-gnu core file update
The patch below allows GDB to again read am33_2.0-unknown-linux-gnu
core files. This change is necessitated by the following change to
the kernel:
https://lkml.org/lkml/2009/6/11/204
In that patch, the size of ELF_NGREG was decreased.
I am intentionally leaving the old case in place so that core files made
by older kernels can still be read too.
Okay?
* elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
to correspond to a smaller ELF_NGREG defined by the kernel.
Index: elf32-am33lin.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-am33lin.c,v
retrieving revision 1.8
diff -u -p -r1.8 elf32-am33lin.c
--- elf32-am33lin.c 18 Aug 2010 12:24:05 -0000 1.8
+++ elf32-am33lin.c 15 Dec 2011 20:59:44 -0000
@@ -50,6 +50,7 @@ elf32_am33lin_grok_prstatus (bfd *abfd,
default:
return FALSE;
+ case 184:
case 188: /* Linux/am33 */
/* pr_cursig */
elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12);