X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fxtensa-linux-nat.c;h=2d506f7fcac6d420ddcfe868a698f6e67bb158df;hb=b16f7544121b8d4f0f98e0ff121aabe8a1509b93;hp=191ccefbf166267af823cea753f26bf1930c9ad1;hpb=c5a570810022466eaa5e077cd1b8aa00d74706f1;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index 191ccef..2d506f7 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -1,6 +1,6 @@ /* Xtensa GNU/Linux native support. - Copyright (C) 2007-2012 Free Software Foundation, Inc. + Copyright (C) 2007-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -18,18 +18,15 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_string.h" #include "frame.h" #include "inferior.h" #include "gdbcore.h" #include "regcache.h" -#include "gdb_assert.h" #include "target.h" #include "linux-nat.h" #include #include -#include #include #include #include @@ -37,6 +34,7 @@ #include #include #include +#include #include "gregset.h" #include "xtensa-tdep.h" @@ -46,12 +44,12 @@ hardware-specific overlays. */ #include "xtensa-xtregs.c" -int +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)