Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb Enhance the GDB support for NetBSD
details: https://anonhg.NetBSD.org/src/rev/1e5877bf1fb3
branches: trunk
changeset: 457175:1e5877bf1fb3
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Jun 14 01:00:52 2019 +0000
description:
Enhance the GDB support for NetBSD
- Enable VFORK events
- Add syscall number for SCE/SCX events
- Add commented out posix_spawn(3) events
diffstat:
external/gpl3/gdb/dist/gdb/nbsd-nat.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 1de993c030b9 -r 1e5877bf1fb3 external/gpl3/gdb/dist/gdb/nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-nat.c Thu Jun 13 21:20:05 2019 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-nat.c Fri Jun 14 01:00:52 2019 +0000
@@ -233,12 +233,13 @@
sizeof (events)) == -1)
perror_with_name (("ptrace"));
events |= PTRACE_FORK;
-#ifdef notyet
events |= PTRACE_VFORK;
events |= PTRACE_VFORK_DONE;
-#endif
events |= PTRACE_LWP_CREATE;
events |= PTRACE_LWP_EXIT;
+#if notyet
+ events |= PTRACE_POSIX_SPAWN;
+#endif
if (ptrace (PT_SET_EVENT_MASK, pid, (PTRACE_TYPE_ARG3)&events,
sizeof (events)) == -1)
perror_with_name (("ptrace"));
@@ -381,11 +382,11 @@
break;
case TRAP_SCE:
ourstatus->kind = TARGET_WAITKIND_SYSCALL_ENTRY;
-// ourstatus->value.syscall_number = 0;
+ ourstatus->value.syscall_number = psi.psi_siginfo.si_sysnum;
break;
case TRAP_SCX:
ourstatus->kind = TARGET_WAITKIND_SYSCALL_RETURN;
-// ourstatus->value.syscall_number = 0;
+ ourstatus->value.syscall_number = psi.psi_siginfo.si_sysnum;
break;
case TRAP_EXEC:
ourstatus->kind = TARGET_WAITKIND_EXECD;
Home |
Main Index |
Thread Index |
Old Index