This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] common/linux-ptrace.c: Fix build on non-Intel architectures.


On 08/24/2013 04:34 PM, Will Newton wrote:

As uintptr_t is used stdint.h must be included on all architectures.

2013-08-24  Will Newton  <will.newton@linaro.org>

	* common/linux-ptrace.c: Include stdint.h unconditionally.
---
  gdb/common/linux-ptrace.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
index a4a2ca3..3a8e25e 100644
--- a/gdb/common/linux-ptrace.c
+++ b/gdb/common/linux-ptrace.c
@@ -30,6 +30,8 @@
  #include "gdb_assert.h"
  #include "gdb_wait.h"

+#include <stdint.h>
+
  /* Stores the currently supported ptrace options.  A value of
     -1 means we did not check for features yet.  A value of 0 means
     there are no supported features.  */
@@ -64,7 +66,6 @@ extern void (linux_ptrace_test_ret_to_nx_instr) (void);
  #include <sys/reg.h>
  #include <sys/mman.h>
  #include <signal.h>
-#include <stdint.h>

  #endif /* defined __i386__ || defined __x86_64__ */


Well spotted.

Thanks,
Luis


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]