aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-04-29 15:33:33 +0200
committerKamil Rytarowski <n54@gmx.com>2020-04-29 20:03:44 +0200
commitb68b1b58d687584f7177678146e4c7def22e9699 (patch)
tree162b13e9235effe21256657209ca5fc8403113dc
parentf94b2e038757eeefd7351e8122160715d6e3ce3c (diff)
downloadgdb-b68b1b58d687584f7177678146e4c7def22e9699.zip
gdb-b68b1b58d687584f7177678146e4c7def22e9699.tar.gz
gdb-b68b1b58d687584f7177678146e4c7def22e9699.tar.bz2
Set NetBSD xml syscall file name to syscalls/netbsd.xml
The syscall literal names are not stable on NetBSD and can change once a syscall is versioned. Thus these names are internal to the system and in GDB mostly descriptive, not intended to be a stable interface with fixed names across GDB and NetBSD versions to track certain syscalls. gdb/ChangeLog: * nbsd-tdep.c: Include "xml-syscall.h". (nbsd_init_abi): Call `set_xml_syscall_file_name'.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nbsd-tdep.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f3593d6..026219e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-04-29 Kamil Rytarowski <n54@gmx.com>
+ * nbsd-tdep.c: Include "xml-syscall.h".
+ (nbsd_init_abi): Call `set_xml_syscall_file_name'.
+
+2020-04-29 Kamil Rytarowski <n54@gmx.com>
+
* nbsd-nat.c: Include "sys/wait.h".
(nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
(nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
diff --git a/gdb/nbsd-tdep.c b/gdb/nbsd-tdep.c
index 2ed16f6..4fdfe47 100644
--- a/gdb/nbsd-tdep.c
+++ b/gdb/nbsd-tdep.c
@@ -25,6 +25,7 @@
#include "nbsd-tdep.h"
#include "gdbarch.h"
#include "objfiles.h"
+#include "xml-syscall.h"
/* Flags in the 'kve_protection' field in struct kinfo_vmentry. These
match the KVME_PROT_* constants in <sys/sysctl.h>. */
@@ -470,5 +471,6 @@ nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_auxv_parse (gdbarch, svr4_auxv_parse);
/* `catch syscall' */
+ set_xml_syscall_file_name (gdbarch, "syscalls/netbsd.xml");
set_gdbarch_get_syscall_number (gdbarch, nbsd_get_syscall_number);
}