diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-06-01 12:13:02 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-06-01 12:13:02 +0100 |
commit | ca9b78ce906d588bb9aab0c6739c2dbdacd62612 (patch) | |
tree | 74a5073bff1e0225d42641df0550eba26c044a53 /gdb/gdbserver | |
parent | d194d186a7dd9f23f34a9aef593ce691af3c875f (diff) | |
download | binutils-gdb-ca9b78ce906d588bb9aab0c6739c2dbdacd62612.tar.gz |
Move PTRACE_GETREGSET and PTRACE_SETREGSET to nat/linux-ptrace.h
Macros PTRACE_GETREGSET and PTRACE_SETREGSET are defined locally in
some places in GDB and GDBserver. This patch is to move them to
nat/linux-ptrace.h to avoid duplication.
gdb:
2015-06-01 Yao Qi <yao.qi@linaro.org>
* amd64-linux-nat.c: Include "nat/linux-ptrace.h".
* i386-linux-nat.c: Likewise.
* nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
* s390-linux-nat.c: Include "nat/linux-ptrace.h".
(PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
* x86-linux-nat.c: Include "nat/linux-ptrace.h".
* x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
gdb/gdbserver:
2015-06-01 Yao Qi <yao.qi@linaro.org>
* linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
* linux-x86-low.c: Likewise.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-s390-low.c | 8 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 9 |
3 files changed, 5 insertions, 17 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 4e4f42935b6..afba52ac59d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-06-01 Yao Qi <yao.qi@linaro.org> + + * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove. + * linux-x86-low.c: Likewise. + 2015-05-28 Don Breazeal <donb@codesourcery.com> * linux-low.c (handle_extended_wait): Initialize diff --git a/gdb/gdbserver/linux-s390-low.c b/gdb/gdbserver/linux-s390-low.c index afee1ff44c9..5d4ea1ff45f 100644 --- a/gdb/gdbserver/linux-s390-low.c +++ b/gdb/gdbserver/linux-s390-low.c @@ -40,14 +40,6 @@ #define HWCAP_S390_VX 2048 #endif -#ifndef PTRACE_GETREGSET -#define PTRACE_GETREGSET 0x4204 -#endif - -#ifndef PTRACE_SETREGSET -#define PTRACE_SETREGSET 0x4205 -#endif - /* Defined in auto-generated file s390-linux32.c. */ void init_registers_s390_linux32 (void); extern const struct target_desc *tdesc_s390_linux32; diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 4aef7b79825..484eadba054 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -120,15 +120,6 @@ static const char *xmltarget_amd64_linux_no_xml = "@<target>\ #include <sys/ptrace.h> #include <sys/uio.h> -#ifndef PTRACE_GETREGSET -#define PTRACE_GETREGSET 0x4204 -#endif - -#ifndef PTRACE_SETREGSET -#define PTRACE_SETREGSET 0x4205 -#endif - - #ifndef PTRACE_GET_THREAD_AREA #define PTRACE_GET_THREAD_AREA 25 #endif |