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 Use tid - 1 for the thread id, so...
details: https://anonhg.NetBSD.org/src/rev/0cbb6eab353b
branches: trunk
changeset: 778317:0cbb6eab353b
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 21 23:20:58 2012 +0000
description:
Use tid - 1 for the thread id, so that thread 1 matches the main thread
before the threaded code gets loaded. fixes spurious breakpoints. Is
there a better way?
diffstat:
external/gpl3/gdb/dist/gdb/nbsd-thread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b489c37d4f96 -r 0cbb6eab353b external/gpl3/gdb/dist/gdb/nbsd-thread.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-thread.c Wed Mar 21 22:29:21 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-thread.c Wed Mar 21 23:20:58 2012 +0000
@@ -90,7 +90,7 @@
#define IS_LWP(ptid) (GET_LWP (ptid) != 0)
#define IS_THREAD(ptid) (GET_THREAD (ptid) != 0)
-#define BUILD_LWP(lwp, ptid) ptid_build (GET_PID(ptid), lwp, 0)
+#define BUILD_LWP(lwp, ptid) ptid_build (GET_PID(ptid), (lwp) - 1, 0)
#define BUILD_THREAD(tid, ptid) ptid_build (GET_PID(ptid), 0, tid)
static td_proc_t *main_ta;
Home |
Main Index |
Thread Index |
Old Index