Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/binutils get_netbsd_elfcore_note...



details:   https://anonhg.NetBSD.org/src/rev/0a2ef4f33d5d
branches:  trunk
changeset: 770752:0a2ef4f33d5d
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Oct 31 19:12:48 2011 +0000

description:
get_netbsd_elfcore_note_type: sync SuperH PT_GETREGS value with
reality.  Recognize old PT___GETREGS40 (for struct __reg40 without
GBR).  Recognize PT_GETFPREGS that we don't yet actually have, but for
which the number is now reserved.

diffstat:

 external/gpl3/binutils/dist/binutils/readelf.c |  17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r 81b2e573ce19 -r 0a2ef4f33d5d external/gpl3/binutils/dist/binutils/readelf.c
--- a/external/gpl3/binutils/dist/binutils/readelf.c    Mon Oct 31 19:08:45 2011 +0000
+++ b/external/gpl3/binutils/dist/binutils/readelf.c    Mon Oct 31 19:12:48 2011 +0000
@@ -11933,6 +11933,23 @@
        }
       break;
 
+    /* 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 EM_SH:
+      switch (e_type)
+       {
+       case NT_NETBSDCORE_FIRSTMACH + 1:
+         return _("PT___GETREGS40 (old reg structure)");
+       case NT_NETBSDCORE_FIRSTMACH + 3:
+         return _("PT_GETREGS (reg structure)");
+       case NT_NETBSDCORE_FIRSTMACH + 5:
+         return _("PT_GETFPREGS (fpreg structure)");
+       default:
+         break;
+       }
+      break;
+
     /* On all other arch's, PT_GETREGS == mach+1 and
        PT_GETFPREGS == mach+3.  */
     default:



Home | Main Index | Thread Index | Old Index