| Index: gdb/ia64-linux-nat.c
|
| diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
|
| index 9b5fbf3d8ae3471895d2aa4c560a6716968bbc05..edc1e23913a0b386b7214bf898d6782370685c01 100644
|
| --- a/gdb/ia64-linux-nat.c
|
| +++ b/gdb/ia64-linux-nat.c
|
| @@ -1,7 +1,7 @@
|
| /* Functions specific to running gdb native on IA-64 running
|
| GNU/Linux.
|
|
|
| - Copyright (C) 1999-2012 Free Software Foundation, Inc.
|
| + Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -19,7 +19,7 @@
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| #include "defs.h"
|
| -#include "gdb_string.h"
|
| +#include <string.h>
|
| #include "inferior.h"
|
| #include "target.h"
|
| #include "gdbcore.h"
|
| @@ -511,9 +511,9 @@ store_debug_register (ptid_t ptid, int idx, long val)
|
| {
|
| int tid;
|
|
|
| - tid = TIDGET (ptid);
|
| + tid = ptid_get_lwp (ptid);
|
| if (tid == 0)
|
| - tid = PIDGET (ptid);
|
| + tid = ptid_get_pid (ptid);
|
|
|
| (void) ptrace (PT_WRITE_U, tid, (PTRACE_TYPE_ARG3) (PT_DBR + 8 * idx), val);
|
| }
|
|
|