aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-13 23:37:10 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 00:31:16 +0100
commit06d949ec3121f4732e789db1efc53986355c9481 (patch)
treeb763ed34ee3a9397ba6b1795548f29109aa71dcf /binutils/readelf.c
parent9fcbd8a90a92bf303c41be816040789e1ed6cf4e (diff)
downloadgdb-06d949ec3121f4732e789db1efc53986355c9481.zip
gdb-06d949ec3121f4732e789db1efc53986355c9481.tar.gz
gdb-06d949ec3121f4732e789db1efc53986355c9481.tar.bz2
Implement NT_NETBSDCORE_LWPSTATUS (NetBSD-Core)
bfd/ChangeLog: * elf.c (elfcore_grok_netbsd_note): Add support for NT_NETBSDCORE_LWPSTATUS notes. binutils/ChangeLog: * readelf.c (get_netbsd_elfcore_note_type): Add support for NT_NETBSDCORE_LWPSTATUS notes. include/ChangeLog: * elf/common.h (NT_NETBSDCORE_LWPSTATUS): New define.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 4e21bdb..f36883c 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -18451,8 +18451,13 @@ get_netbsd_elfcore_note_type (Filedata * filedata, unsigned e_type)
return _("NetBSD ELF auxiliary vector data");
#endif
+#ifdef NT_NETBSDCORE_LWPSTATUS
+ case NT_NETBSDCORE_LWPSTATUS:
+ return _("PT_LWPSTATUS (ptrace_lwpstatus structure)");
+#endif
+
default:
- /* As of Jan 2002 there are no other machine-independent notes
+ /* As of Jan 2020 there are no other machine-independent notes
defined for NetBSD core files. If the note type is less
than the start of the machine-dependent note types, we don't
understand it. */