| Index: gdb/xtensa-linux-nat.c
|
| diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
|
| index 4c7f0abcf35a7fef77dcb851c60aaf74775213d6..ed60429a2b29a0650fae8e7ec413bd3b7326a32d 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-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -18,7 +18,7 @@
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| #include "defs.h"
|
| -#include "gdb_string.h"
|
| +#include <string.h>
|
| #include "frame.h"
|
| #include "inferior.h"
|
| #include "gdbcore.h"
|
| @@ -29,7 +29,6 @@
|
|
|
| #include <stdint.h>
|
| #include <sys/types.h>
|
| -#include <sys/param.h>
|
| #include <signal.h>
|
| #include <sys/user.h>
|
| #include <sys/ioctl.h>
|
| @@ -49,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)
|
|
|