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 only +1 for the 0'th thread (if w...
details: https://anonhg.NetBSD.org/src/rev/ca5cec0352db
branches: trunk
changeset: 778339:ca5cec0352db
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 22 16:06:01 2012 +0000
description:
only +1 for the 0'th thread (if we did not find any other)
diffstat:
external/gpl3/gdb/dist/gdb/nbsd-thread.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 1c7344b051e0 -r ca5cec0352db external/gpl3/gdb/dist/gdb/nbsd-thread.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-thread.c Thu Mar 22 15:57:29 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-thread.c Thu Mar 22 16:06:01 2012 +0000
@@ -328,13 +328,15 @@
while ((val != -1) && (pl.pl_lwpid != 0) &&
(pl.pl_event != PL_EVENT_SIGNAL))
val = ptrace (PT_LWPINFO, GET_PID(inferior_ptid), (void *)&pl, sizeof(pl));
+ if (pl.pl_lwpid == 0)
+ pl.pl_lwpid = 1;
}
else
{
return inferior_ptid;
}
- cached_thread = BUILD_LWP (pl.pl_lwpid + 1, main_ptid);
+ cached_thread = BUILD_LWP (pl.pl_lwpid, main_ptid);
return cached_thread;
}
Home |
Main Index |
Thread Index |
Old Index