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 complete the mapping of the lwp -...
details: https://anonhg.NetBSD.org/src/rev/a95b8b956dda
branches: trunk
changeset: 778335:a95b8b956dda
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 22 15:26:32 2012 +0000
description:
complete the mapping of the lwp -> (lwp - 1), by adding 1 where appropriate.
diffstat:
external/gpl3/gdb/dist/gdb/nbsd-thread.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 45c02d28f52e -r a95b8b956dda external/gpl3/gdb/dist/gdb/nbsd-thread.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-thread.c Thu Mar 22 15:05:36 2012 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-thread.c Thu Mar 22 15:26:32 2012 +0000
@@ -84,7 +84,7 @@
static void nbsd_find_new_threads (struct target_ops *);
#define GET_PID(ptid) ptid_get_pid (ptid)
-#define GET_LWP(ptid) ptid_get_lwp (ptid)
+#define GET_LWP(ptid) (ptid_get_lwp (ptid) + 1)
#define GET_THREAD(ptid) ptid_get_tid (ptid)
#define IS_LWP(ptid) (GET_LWP (ptid) != 0)
@@ -334,7 +334,7 @@
return inferior_ptid;
}
- cached_thread = BUILD_LWP (pl.pl_lwpid, main_ptid);
+ cached_thread = BUILD_LWP (pl.pl_lwpid + 1, main_ptid);
return cached_thread;
}
Home |
Main Index |
Thread Index |
Old Index