* [RFA] am33_2.0-linux-gnu core file update
@ 2011-12-15 21:12 Kevin Buettner
2011-12-15 22:48 ` Alan Modra
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2011-12-15 21:12 UTC (permalink / raw)
To: binutils
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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] am33_2.0-linux-gnu core file update
2011-12-15 21:12 [RFA] am33_2.0-linux-gnu core file update Kevin Buettner
@ 2011-12-15 22:48 ` Alan Modra
2011-12-16 0:09 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2011-12-15 22:48 UTC (permalink / raw)
To: Kevin Buettner; +Cc: binutils
On Thu, Dec 15, 2011 at 02:11:43PM -0700, Kevin Buettner wrote:
> * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
> to correspond to a smaller ELF_NGREG defined by the kernel.
OK.
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] am33_2.0-linux-gnu core file update
2011-12-15 22:48 ` Alan Modra
@ 2011-12-16 0:09 ` Kevin Buettner
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Buettner @ 2011-12-16 0:09 UTC (permalink / raw)
To: binutils
On Fri, 16 Dec 2011 09:17:56 +1030
Alan Modra <amodra@gmail.com> wrote:
> On Thu, Dec 15, 2011 at 02:11:43PM -0700, Kevin Buettner wrote:
> > * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Add case
> > to correspond to a smaller ELF_NGREG defined by the kernel.
>
> OK.
Committed.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-16 0:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 21:12 [RFA] am33_2.0-linux-gnu core file update Kevin Buettner
2011-12-15 22:48 ` Alan Modra
2011-12-16 0:09 ` Kevin Buettner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).