Module Name: src Committed By: christos Date: Sun Dec 15 16:04:06 UTC 2024
Modified Files: src/external/gpl3/gdb/dist/gdb: netbsd-nat.c Log Message: New gdb does not expect the native wait to return THREAD_EXITED, so consume it internally. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/netbsd-nat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdb/netbsd-nat.c diff -u src/external/gpl3/gdb/dist/gdb/netbsd-nat.c:1.4 src/external/gpl3/gdb/dist/gdb/netbsd-nat.c:1.5 --- src/external/gpl3/gdb/dist/gdb/netbsd-nat.c:1.4 Mon Aug 12 18:09:30 2024 +++ src/external/gpl3/gdb/dist/gdb/netbsd-nat.c Sun Dec 15 11:04:06 2024 @@ -580,6 +580,7 @@ ptid_t nbsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus, target_wait_flags target_options) { +again: pid_t pid = nbsd_wait (ptid, ourstatus, target_options); ptid_t wptid = ptid_t (pid); @@ -640,8 +641,7 @@ nbsd_nat_target::wait (ptid_t ptid, stru /* The GDB core expects that the rest of the threads are running. */ if (ptrace (PT_CONTINUE, pid, (void *) 1, 0) == -1) perror_with_name (("ptrace")); - - return wptid; + goto again; } if (in_thread_list (this, ptid_t (pid)))