projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed optimzation for Atom
[platform/upstream/binutils.git]
/
gdb
/
xtensa-linux-nat.c
diff --git
a/gdb/xtensa-linux-nat.c
b/gdb/xtensa-linux-nat.c
index
191ccef
..
2d506f7
100644
(file)
--- a/
gdb/xtensa-linux-nat.c
+++ b/
gdb/xtensa-linux-nat.c
@@
-1,6
+1,6
@@
/* Xtensa GNU/Linux native support.
/* Xtensa GNU/Linux native support.
- Copyright (C) 2007-201
2
Free Software Foundation, Inc.
+ Copyright (C) 2007-201
4
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-18,18
+18,15
@@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "gdb_string.h"
#include "frame.h"
#include "inferior.h"
#include "gdbcore.h"
#include "regcache.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 <stdint.h>
#include <sys/types.h>
#include "target.h"
#include "linux-nat.h"
#include <stdint.h>
#include <sys/types.h>
-#include <sys/param.h>
#include <signal.h>
#include <sys/user.h>
#include <sys/ioctl.h>
#include <signal.h>
#include <sys/user.h>
#include <sys/ioctl.h>
@@
-37,6
+34,7
@@
#include <fcntl.h>
#include <sys/procfs.h>
#include <sys/ptrace.h>
#include <fcntl.h>
#include <sys/procfs.h>
#include <sys/ptrace.h>
+#include <asm/ptrace.h>
#include "gregset.h"
#include "xtensa-tdep.h"
#include "gregset.h"
#include "xtensa-tdep.h"
@@
-46,12
+44,12
@@
hardware-specific overlays. */
#include "xtensa-xtregs.c"
hardware-specific overlays. */
#include "xtensa-xtregs.c"
-int
+
static
int
get_thread_id (ptid_t ptid)
{
get_thread_id (ptid_t ptid)
{
- int tid =
TIDGET
(ptid);
+ int tid =
ptid_get_lwp
(ptid);
if (0 == tid)
if (0 == tid)
- tid =
PIDGET
(ptid);
+ tid =
ptid_get_pid
(ptid);
return tid;
}
#define GET_THREAD_ID(PTID) get_thread_id (PTID)
return tid;
}
#define GET_THREAD_ID(PTID) get_thread_id (PTID)