Module Name: src Committed By: christos Date: Thu Mar 22 15:26:32 UTC 2012
Modified Files: src/external/gpl3/gdb/dist/gdb: nbsd-thread.c Log Message: complete the mapping of the lwp -> (lwp - 1), by adding 1 where appropriate. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/nbsd-thread.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-thread.c diff -u src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.10 src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.11 --- src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.10 Wed Mar 21 19:20:58 2012 +++ src/external/gpl3/gdb/dist/gdb/nbsd-thread.c Thu Mar 22 11:26:32 2012 @@ -84,7 +84,7 @@ static ptid_t find_active_thread (void); 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 @@ find_active_thread (void) 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; }