Fix fallout from gdb/20413's fix (x32: linux_ptrace_test_ret_to_nx: Cannot PTRACE_PEE...
authorPedro Alves <palves@redhat.com>
Thu, 11 Aug 2016 11:01:22 +0000 (12:01 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 11 Aug 2016 11:01:22 +0000 (12:01 +0100)
Fixes, on NIOS GNU/Linux:

  In file included from
  /scratch/mbilal/nois-lite/src/gdb-trunk/gdb/gdbserver/../nat/linux-ptrace.c:26:0:
  /scratch/mbilal/nois-lite/src/gdb-trunk/gdb/gdbserver/../gregset.h:27:23:
  error: unknown type name 'gregset_t'
   #define GDB_GREGSET_T gregset_t
 ^

Fix this by including sys/procfs.h directly.  We shouldn't really be
including a gdb-only header in a gdb/nat/ file, anyway.  Whoops.

gdb/ChangeLog:
2016-08-11  Pedro Alves  <palves@redhat.com>

PR gdb/20413
* nat/linux-ptrace.c: Include <sys/procfs.h> instead of
"gregset.h".

gdb/ChangeLog
gdb/nat/linux-ptrace.c

index c5ffe4715b85e9be8551cfd34a03629e00c4f01a..91e8b717bf21d2c12993c0ba232f45faa608e297 100644 (file)
@@ -1,3 +1,9 @@
+2016-08-11  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/20413
+       * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
+       "gregset.h".
+
 2016-08-10  Pedro Alves  <palves@redhat.com>
 
        PR gdb/19187
index 980ed53c73f772d1925c76b4afdb02d1207028f5..f00f1794749c0e04fa69ba0fd17aac2338cec4e4 100644 (file)
@@ -23,7 +23,7 @@
 #include "buffer.h"
 #include "gdb_wait.h"
 #include "gdb_ptrace.h"
-#include "gregset.h"
+#include <sys/procfs.h>
 
 /* Stores the ptrace options supported by the running kernel.
    A value of -1 means we did not check for features yet.  A value