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'.
+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".
#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>. */
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);
}