diff options
author | Christos Zoulas <christos@zoulas.com> | 2019-06-12 14:35:04 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2019-06-12 14:35:04 +0100 |
commit | c0d38b0ec6756de6a0b68477e47bb8619eef2262 (patch) | |
tree | b631b6953baa4fa8d78f18c7ff431b56aef84114 /binutils | |
parent | 540e617049db92b4371fa90cadd4cd994508f86d (diff) | |
download | gdb-c0d38b0ec6756de6a0b68477e47bb8619eef2262.zip gdb-c0d38b0ec6756de6a0b68477e47bb8619eef2262.tar.gz gdb-c0d38b0ec6756de6a0b68477e47bb8619eef2262.tar.bz2 |
Add support for NetBSD/sh3 core reg sections to readelf.
PR 24665
* readelf.c (get_netbsd_elfcore_note_type): Add support for SH
core notes.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/readelf.c | 17 |
2 files changed, 23 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7bfa6d1..2d80604 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2019-06-12 Christos Zoulas <christos@zoulas.com> + PR 24665 + * readelf.c (get_netbsd_elfcore_note_type): Add support for SH + core notes. + +2019-06-12 Christos Zoulas <christos@zoulas.com> + PR 24664 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD auxv notes. diff --git a/binutils/readelf.c b/binutils/readelf.c index 5e970bb..4ed1ba1 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -18168,6 +18168,23 @@ get_netbsd_elfcore_note_type (Filedata * filedata, unsigned e_type) } 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: |