| 1 | diff -u -r ../gdb-7.7/gdb/arm-linux-nat.c ./gdb/arm-linux-nat.c |
| 2 | --- ../gdb-7.7/gdb/arm-linux-nat.c 2014-01-08 10:23:36.000000000 +0100 |
| 3 | +++ ./gdb/arm-linux-nat.c 2014-02-12 01:16:47.000000000 +0100 |
| 4 | @@ -32,10 +32,8 @@ |
| 5 | #include "arm-linux-tdep.h" |
| 6 | |
| 7 | #include <elf/common.h> |
| 8 | -#include <sys/user.h> |
| 9 | #include <sys/ptrace.h> |
| 10 | #include <sys/utsname.h> |
| 11 | -#include <sys/procfs.h> |
| 12 | |
| 13 | /* Prototypes for supply_gregset etc. */ |
| 14 | #include "gregset.h" |
| 15 | @@ -101,7 +99,7 @@ |
| 16 | tid = GET_THREAD_ID (inferior_ptid); |
| 17 | |
| 18 | /* Read the floating point state. */ |
| 19 | - ret = ptrace (PT_GETFPREGS, tid, 0, fp); |
| 20 | + ret = ptrace (PTRACE_GETFPREGS, tid, 0, fp); |
| 21 | if (ret < 0) |
| 22 | { |
| 23 | warning (_("Unable to fetch floating point register.")); |
| 24 | @@ -131,7 +129,7 @@ |
| 25 | tid = GET_THREAD_ID (inferior_ptid); |
| 26 | |
| 27 | /* Read the floating point state. */ |
| 28 | - ret = ptrace (PT_GETFPREGS, tid, 0, fp); |
| 29 | + ret = ptrace (PTRACE_GETFPREGS, tid, 0, fp); |
| 30 | if (ret < 0) |
| 31 | { |
| 32 | warning (_("Unable to fetch the floating point registers.")); |
| 33 | @@ -160,7 +158,7 @@ |
| 34 | tid = GET_THREAD_ID (inferior_ptid); |
| 35 | |
| 36 | /* Read the floating point state. */ |
| 37 | - ret = ptrace (PT_GETFPREGS, tid, 0, fp); |
| 38 | + ret = ptrace (PTRACE_GETFPREGS, tid, 0, fp); |
| 39 | if (ret < 0) |
| 40 | { |
| 41 | warning (_("Unable to fetch the floating point registers.")); |
| 42 | @@ -197,7 +195,7 @@ |
| 43 | tid = GET_THREAD_ID (inferior_ptid); |
| 44 | |
| 45 | /* Read the floating point state. */ |
| 46 | - ret = ptrace (PT_GETFPREGS, tid, 0, fp); |
| 47 | + ret = ptrace (PTRACE_GETFPREGS, tid, 0, fp); |
| 48 | if (ret < 0) |
| 49 | { |
| 50 | warning (_("Unable to fetch the floating point registers.")); |