diff options
Diffstat (limited to 'gdb/xtensa-linux-nat.c')
-rw-r--r-- | gdb/xtensa-linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index 3fdaa37..3934165 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -48,9 +48,9 @@ static int get_thread_id (ptid_t ptid) { - int tid = TIDGET (ptid); + int tid = ptid_get_lwp (ptid); if (0 == tid) - tid = PIDGET (ptid); + tid = ptid_get_pid (ptid); return tid; } #define GET_THREAD_ID(PTID) get_thread_id (PTID) |