Module Name: src
Committed By: christos
Date: Sat Sep 19 21:45:45 UTC 2020
Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c
Log Message:
The lid of the main thread == pid now. Should we fix the kernel to return
this? Now debugging live programs work.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gdb/dist/gdb/nbsd-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/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.16 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.17
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.16 Wed Sep 16 22:12:31 2020
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c Sat Sep 19 17:45:45 2020
@@ -587,6 +587,9 @@ nbsd_nat_target::wait (ptid_t ptid, stru
siginfo_t *si = &psi.psi_siginfo;
int lwp = psi.psi_lwpid;
+ // XXX: should the kernel return this?
+ if (lwp == 0)
+ lwp = pid;
int signo = si->si_signo;
const int code = si->si_code;