Module Name:    src
Committed By:   uwe
Date:           Tue Nov  1 00:31:39 UTC 2011

Modified Files:
        src/external/gpl3/gdb/dist/bfd: elf.c

Log Message:
elfcore_grok_netbsd_note: sync SuperH PT_GETREGS value with reality.
Recognize PT_GETFPREGS that we don't yet actually have, but for which
the number is now reserved.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gdb/dist/bfd/elf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/bfd/elf.c
diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.1.1.1 src/external/gpl3/gdb/dist/bfd/elf.c:1.2
--- src/external/gpl3/gdb/dist/bfd/elf.c:1.1.1.1	Sat Sep 24 19:44:29 2011
+++ src/external/gpl3/gdb/dist/bfd/elf.c	Tue Nov  1 00:31:38 2011
@@ -8495,6 +8495,23 @@ elfcore_grok_netbsd_note (bfd *abfd, Elf
 	  return TRUE;
 	}
 
+      /* On SuperH, PT_GETREGS == mach+3 and PT_GETFPREGS == mach+5.
+	 There's also old PT___GETREGS40 == mach + 1 for old reg
+	 structure which lacks GBR.  */
+
+    case bfd_arch_sh:
+      switch (note->type)
+	{
+	case NT_NETBSDCORE_FIRSTMACH+3:
+	  return elfcore_make_note_pseudosection (abfd, ".reg", note);
+
+	case NT_NETBSDCORE_FIRSTMACH+5:
+	  return elfcore_make_note_pseudosection (abfd, ".reg2", note);
+
+	default:
+	  return TRUE;
+	}
+
       /* On all other arch's, PT_GETREGS == mach+1 and
 	 PT_GETFPREGS == mach+3.  */
 

Reply via email to