Linux: sys/ptrace.h -> nat/gdb_ptrace.h everywhere
authorPedro Alves <palves@redhat.com>
Fri, 24 Jul 2015 13:57:20 +0000 (14:57 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 24 Jul 2015 14:14:47 +0000 (15:14 +0100)
So that we pick the enum __ptrace_request fix everywhere.

gdb/ChangeLog:
2015-07-24  Pedro Alves  <palves@redhat.com>

* aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
sys/ptrace.h.
* alpha-linux-nat.c: Likewise.
* amd64-linux-nat.c: Likewise.
* arm-linux-nat.c: Likewise.
* hppa-linux-nat.c: Likewise.
* i386-linux-nat.c: Likewise.
* ia64-linux-nat.c: Likewise.
* linux-fork.c: Likewise.
* linux-nat.c: Likewise.
* m32r-linux-nat.c: Likewise.
* m68klinux-nat.c: Likewise.
* mips-linux-nat.c: Likewise.
* nat/linux-btrace.c: Likewise.
* nat/linux-ptrace.c: Likewise.
* nat/linux-ptrace.h
* nat/mips-linux-watch.c: Likewise.
* nat/x86-linux-dregs.c: Likewise.
* ppc-linux-nat.c: Likewise.
* s390-linux-nat.c: Likewise.
* spu-linux-nat.c: Likewise.
* tilegx-linux-nat.c: Likewise.
* x86-linux-nat.c: Likewise.
* xtensa-linux-nat.c: Likewise.

gdb/gdbserver/ChangeLog:
2015-07-24  Pedro Alves  <palves@redhat.c: Likewise.om>

* linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
sys/ptrace.h.
* linux-arm-low.c: Likewise.
* linux-cris-low.c: Likewise.
* linux-crisv32-low.c: Likewise.
* linux-low.c: Likewise.
* linux-m68k-low.c: Likewise.
* linux-mips-low.c: Likewise.
* linux-nios2-low.c: Likewise.
* linux-s390-low.c: Likewise.
* linux-sparc-low.c: Likewise.
* linux-tic6x-low.c: Likewise.
* linux-tile-low.c: Likewise.
* linux-x86-low.c: Likewise.

38 files changed:
gdb/ChangeLog
gdb/aarch64-linux-nat.c
gdb/alpha-linux-nat.c
gdb/amd64-linux-nat.c
gdb/arm-linux-nat.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c
gdb/gdbserver/linux-arm-low.c
gdb/gdbserver/linux-cris-low.c
gdb/gdbserver/linux-crisv32-low.c
gdb/gdbserver/linux-low.c
gdb/gdbserver/linux-m68k-low.c
gdb/gdbserver/linux-mips-low.c
gdb/gdbserver/linux-nios2-low.c
gdb/gdbserver/linux-s390-low.c
gdb/gdbserver/linux-sparc-low.c
gdb/gdbserver/linux-tic6x-low.c
gdb/gdbserver/linux-tile-low.c
gdb/gdbserver/linux-x86-low.c
gdb/hppa-linux-nat.c
gdb/i386-linux-nat.c
gdb/ia64-linux-nat.c
gdb/linux-fork.c
gdb/linux-nat.c
gdb/m32r-linux-nat.c
gdb/m68klinux-nat.c
gdb/mips-linux-nat.c
gdb/nat/linux-btrace.c
gdb/nat/linux-ptrace.c
gdb/nat/linux-ptrace.h
gdb/nat/mips-linux-watch.c
gdb/nat/x86-linux-dregs.c
gdb/ppc-linux-nat.c
gdb/s390-linux-nat.c
gdb/spu-linux-nat.c
gdb/tilegx-linux-nat.c
gdb/x86-linux-nat.c
gdb/xtensa-linux-nat.c

index 57be70778c5020ca2e88ece66eb947bcb9f564ec..f6898fc0be73dcb1ee20a865ba1ee64035217823 100644 (file)
@@ -1,3 +1,30 @@
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
+       sys/ptrace.h.
+       * alpha-linux-nat.c: Likewise.
+       * amd64-linux-nat.c: Likewise.
+       * arm-linux-nat.c: Likewise.
+       * hppa-linux-nat.c: Likewise.
+       * i386-linux-nat.c: Likewise.
+       * ia64-linux-nat.c: Likewise.
+       * linux-fork.c: Likewise.
+       * linux-nat.c: Likewise.
+       * m32r-linux-nat.c: Likewise.
+       * m68klinux-nat.c: Likewise.
+       * mips-linux-nat.c: Likewise.
+       * nat/linux-btrace.c: Likewise.
+       * nat/linux-ptrace.c: Likewise.
+       * nat/linux-ptrace.h
+       * nat/mips-linux-watch.c: Likewise.
+       * nat/x86-linux-dregs.c: Likewise.
+       * ppc-linux-nat.c: Likewise.
+       * s390-linux-nat.c: Likewise.
+       * spu-linux-nat.c: Likewise.
+       * tilegx-linux-nat.c: Likewise.
+       * x86-linux-nat.c: Likewise.
+       * xtensa-linux-nat.c: Likewise.
+
 2015-07-24  Pedro Alves  <palves@redhat.com>
 
        * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
index dae0c15d7de79ee9740e645b87fe612b43b07591..758b30fee079aa23344de83b5a757bbe79435dbb 100644 (file)
@@ -35,7 +35,7 @@
 #include "elf/external.h"
 #include "elf/common.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/utsname.h>
 #include <asm/ptrace.h>
 
index 52fbdad05556b6efd7f82b5bc30ca148b9fc4954..f735ffcf1cb0b8117bed89e1c22e21407daac627 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "alpha-tdep.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <alpha/ptrace.h>
 
 #include <sys/procfs.h>
index 2e1b081b0f4f492f8f9bc7e692ff308a7e00c21f..397f6643c4fe9f219625643ded0fab36d8266a6d 100644 (file)
@@ -23,7 +23,7 @@
 #include "regcache.h"
 #include "elf/common.h"
 #include <sys/uio.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <asm/prctl.h>
 #include <sys/reg.h>
 #include "gregset.h"
index f0ab98cace1a412d00803a514593be6a05ee40ca..ff156d0df5a2c7d6686a0e49cf23fd76b46b8933 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <elf/common.h>
 #include <sys/user.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/utsname.h>
 #include <sys/procfs.h>
 
index 664f674aa276c47d2878700287162236856547b6..40826ed99aeafab62c2e4d24b5f5824613205f44 100644 (file)
@@ -1,3 +1,20 @@
+2015-07-24  Pedro Alves  <palves@redhat.c: Likewise.om>
+
+       * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
+       sys/ptrace.h.
+       * linux-arm-low.c: Likewise.
+       * linux-cris-low.c: Likewise.
+       * linux-crisv32-low.c: Likewise.
+       * linux-low.c: Likewise.
+       * linux-m68k-low.c: Likewise.
+       * linux-mips-low.c: Likewise.
+       * linux-nios2-low.c: Likewise.
+       * linux-s390-low.c: Likewise.
+       * linux-sparc-low.c: Likewise.
+       * linux-tic6x-low.c: Likewise.
+       * linux-tile-low.c: Likewise.
+       * linux-x86-low.c: Likewise.
+
 2015-07-24  Pedro Alves  <palves@redhat.com>
 
        * config.in: Regenerate.
index 79eb44c8121e0a7fd2dfa900d8e1b3d5426d7b6d..3a47521e14ff16da5e38d7fd0e92d5d364a78f49 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <signal.h>
 #include <sys/user.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <asm/ptrace.h>
 #include <sys/uio.h>
 
index dd77b48ecdc50b7c0fd4ad6557ead841a0a87a1d..14c96a3fcb02a19489930dbf07147c0d629b327e 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef ELFMAG0
 #include <elf.h>
 #endif
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <signal.h>
 
 /* Defined in auto-generated files.  */
index 4e5e4c06847a63256ea244e6b43e4fa8da49221e..e0bfa1a583b554f303a3508d065a1431cfabc2b9 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "server.h"
 #include "linux-low.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 /* Defined in auto-generated file reg-cris.c.  */
 void init_registers_cris (void);
index 65e6c09df279847633ed102c9e0f72b99da59313..51208638d97c96730ef0452833a233ff2c302a44 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "server.h"
 #include "linux-low.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 /* Defined in auto-generated file reg-crisv32.c.  */
 void init_registers_crisv32 (void);
index 7b4318702a6d3d674fc7fb3f5112fb3970d1cb24..9bc9fa37c4f9c8cf7ae5b532549573a50f473e8b 100644 (file)
@@ -26,7 +26,7 @@
 #include "nat/linux-nat.h"
 #include "nat/linux-waitpid.h"
 #include "gdb_wait.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include "nat/linux-ptrace.h"
 #include "nat/linux-procfs.h"
 #include "nat/linux-personality.h"
index 4501904e391a8607c21e91c0059935d8b491eb1e..39c9cc5a1f9a542ff1b82126b8091d7c4b57d528 100644 (file)
@@ -68,7 +68,7 @@ m68k_cannot_fetch_register (int regno)
 
 #ifdef HAVE_PTRACE_GETREGS
 #include <sys/procfs.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 static void
 m68k_fill_gregset (struct regcache *regcache, void *buf)
index 1695c4cf0dd7e186238235c614735c57909d4ca6..d3b01d61f957025c78a185c4f5a7568eff71a9e2 100644 (file)
@@ -19,7 +19,7 @@
 #include "server.h"
 #include "linux-low.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <endian.h>
 
 #include "nat/mips-linux-watch.h"
index 7bd3c9795d37a80e3743e2f92a8dae02efd56d8d..8a7ac28b2b3a31b00fca61e4648f74e68a62d561 100644 (file)
@@ -22,7 +22,7 @@
 #include "server.h"
 #include "linux-low.h"
 #include "elf/common.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <endian.h>
 #include "gdb_proc_service.h"
 #include <asm/ptrace.h>
index 5d4ea1ff45f75bbe07b0a1c2ca46a3e8d02150e6..8a0a6891433ec49f4fe9ea1098d9db51de7a636f 100644 (file)
@@ -24,7 +24,7 @@
 #include "elf/common.h"
 
 #include <asm/ptrace.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/uio.h>
 #include <elf.h>
 
index 8f5cdbf8ba514ce9554b803378e67c1316a132a0..796af8aa5764e3b1c26795601f4f672e5d01dbd9 100644 (file)
@@ -19,7 +19,7 @@
 #include "server.h"
 #include "linux-low.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 #include "gdb_proc_service.h"
 
index 0a0d220c345dc9a653683263835d110d0b3d8e82..a2ac3eec827cedf0812d63ab0c253e70ecf910e1 100644 (file)
@@ -22,7 +22,7 @@
 #include "server.h"
 #include "linux-low.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <endian.h>
 
 #include "gdb_proc_service.h"
index 2f72fdb8291c070200b5805ce2e73bc1547e7eea..6aaea6a080e74e023ed3d01a703a1315a1eb01be 100644 (file)
@@ -21,7 +21,7 @@
 #include "linux-low.h"
 
 #include <arch/abi.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 /* Defined in auto-generated file reg-tilegx.c.  */
 void init_registers_tilegx (void);
index 484eadba054266accaaf6ef0c3854bfbe31837d6..ec2d9068a0f5ed1471c4cdee0e23cf679fca1b0a 100644 (file)
@@ -25,6 +25,7 @@
 #include "i387-fp.h"
 #include "x86-low.h"
 #include "x86-xstate.h"
+#include "nat/gdb_ptrace.h"
 
 #include "gdb_proc_service.h"
 /* Don't include elf/common.h if linux/elf.h got included by
@@ -117,7 +118,7 @@ static const char *xmltarget_amd64_linux_no_xml = "@<target>\
 
 #include <sys/reg.h>
 #include <sys/procfs.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/uio.h>
 
 #ifndef PTRACE_GET_THREAD_AREA
index cfadf73c1c0256edd4c05b831839142114c79aec..0694f6128f28aea8cbfe2e889d37742fbbe66ff2 100644 (file)
@@ -25,7 +25,7 @@
 #include "linux-nat.h"
 
 #include <sys/procfs.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <linux/version.h>
 
 #include <asm/ptrace.h>
index 349ce68f5c35d1617c2e3614d17b68675212ef0d..63d2648a2217b726effd9c714e1c47c49cf3bf91 100644 (file)
@@ -22,7 +22,7 @@
 #include "gdbcore.h"
 #include "regcache.h"
 #include "elf/common.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/uio.h>
 #include "gregset.h"
 #include "gdb_proc_service.h"
index 31b32487d8bc38378ca9192e72f8e68ecd5b075e..fc17d81b8625e9596e7e81ded92f8056ba3a31ab 100644 (file)
@@ -27,7 +27,7 @@
 #include "linux-nat.h"
 
 #include <signal.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include "gdb_wait.h"
 #ifdef HAVE_SYS_REG_H
 #include <sys/reg.h>
index 27603b36c94a880822d8a26cbbbd1c2c14fc911c..dbaa36eb4a7ad6467ebf24f7a64594425301cf1a 100644 (file)
@@ -30,7 +30,7 @@
 #include "gdbthread.h"
 #include "source.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include "gdb_wait.h"
 #include <dirent.h>
 #include <ctype.h>
index be429f8e4ae1c89640079259fcb8e734338915f3..e383d8ad642bc802759a35bf586475ac129c0dc9 100644 (file)
@@ -28,7 +28,7 @@
 #include <unistd.h>
 #include <sys/syscall.h>
 #endif
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include "linux-nat.h"
 #include "nat/linux-ptrace.h"
 #include "nat/linux-procfs.h"
index e5e867b34911f70e8179c4dd0e2e344e2a71250c..781bb78b50b785df5d49f842aaa5a1114f10c996 100644 (file)
@@ -23,7 +23,7 @@
 #include "regcache.h"
 #include "linux-nat.h"
 #include "target.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/user.h>
 #include <sys/procfs.h>
 
index 8f89d7b87ad93e85abdcd31cf784f7be40b4bcae..e6a4ad946dee393faa27724b38621f678d286eb2 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <sys/dir.h>
 #include <signal.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/user.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
index a36bb6356f13c520c38ce58ac305b9e799904118..961cb6f8636af79fc0c35b5750fc8ef4360ec5ab 100644 (file)
@@ -32,7 +32,7 @@
 #include "gregset.h"
 
 #include <sgidefs.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <asm/ptrace.h>
 
 #include "nat/mips-linux-watch.h"
index 63fcdc831036cf2a32850bb548b3c44c55a8d0d4..88ddc612782fb92abbd325f1e3aa54e3ba4a2db3 100644 (file)
@@ -33,7 +33,7 @@
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/user.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/types.h>
 #include <signal.h>
 #include <sys/utsname.h>
index 1a926f93156c9bde4f92c38786c01b125d45633c..f097c8a3622d2c9600e02f260520ef7edc5c9325 100644 (file)
@@ -22,6 +22,7 @@
 #include "linux-waitpid.h"
 #include "buffer.h"
 #include "gdb_wait.h"
+#include "gdb_ptrace.h"
 
 /* Stores the ptrace options supported by the running kernel.
    A value of -1 means we did not check for features yet.  A value
index be6c39528c9d1f8693b1c6e57ae372390196469d..41f668cd93b97aea1994198e9ef014af47ee0568 100644 (file)
@@ -20,7 +20,7 @@
 
 struct buffer;
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 #ifdef __UCLIBC__
 #if !(defined(__UCLIBC_HAS_MMU__) || defined(__ARCH_HAS_MMU__))
index 464f709cc9def534fdd7d5115a4f1f41719c1a98..02d83f65bf892d1707e0e52757f892f830e12fff 100644 (file)
@@ -16,7 +16,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "common-defs.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include "mips-linux-watch.h"
 
 /* Assuming usable watch registers REGS, return the irw_mask of
index 93898033a6602313fe545986c90a1c9f200a5e6a..666d86a6f701eed105410ef2fd6558b99ce81cc1 100644 (file)
@@ -18,7 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "common-defs.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/user.h>
 #include "target/waitstatus.h"
 #include "nat/x86-linux.h"
index 4ed03d0204d0fbb62ce51c6268f3e560408c6468..751468551e14c998d14a6d6fe680039e5ce170a9 100644 (file)
@@ -33,7 +33,7 @@
 #include "gdb_wait.h"
 #include <fcntl.h>
 #include <sys/procfs.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 /* Prototypes for supply_gregset etc.  */
 #include "gregset.h"
index cedc505e1bddff1a44218f977aebdb81c3d3da2d..94edce8bdb0c01677b2b122e22c15d1ea164a022 100644 (file)
@@ -33,7 +33,7 @@
 #include "elf/common.h"
 
 #include <asm/ptrace.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <asm/types.h>
 #include <sys/procfs.h>
 #include <sys/ucontext.h>
index a043f53d3777c6375bdc9dda615cf7e81eb5dbf0..cb182bebcef8c56c6d65984393f5819eb6f6262c 100644 (file)
@@ -30,7 +30,7 @@
 #include "gdbthread.h"
 #include "gdb_bfd.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <asm/ptrace.h>
 #include <sys/types.h>
 
index b8f0c76541b7dfac7b7a32fd75b4b9394a3b88db..b9ce47ac3fbc18ea72a46fd6f54d3134357700dc 100644 (file)
@@ -23,7 +23,7 @@
 #include "regcache.h"
 #include "linux-nat.h"
 
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 
 #include <sys/procfs.h>
 
index 04917d085719e76f2c255be332830f67d6fcd500..34a9257ba318933197d125b3678ed210a109b0de 100644 (file)
@@ -21,7 +21,7 @@
 #include "inferior.h"
 #include "elf/common.h"
 #include "gdb_proc_service.h"
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <sys/user.h>
 #include <sys/procfs.h>
 #include <sys/uio.h>
index fa627320d6ffc481bb0be78822108b1de78320cc..7f530ce7903e6d26118556b94272bb6195162159 100644 (file)
@@ -31,7 +31,7 @@
 #include "gdb_wait.h"
 #include <fcntl.h>
 #include <sys/procfs.h>
-#include <sys/ptrace.h>
+#include "nat/gdb_ptrace.h"
 #include <asm/ptrace.h>
 
 #include "gregset.h"