summaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorwillnewton <willnewton>2013-08-28 14:09:31 +0000
committerwillnewton <willnewton>2013-08-28 14:09:31 +0000
commit437bf2c75f6735dc405530acf79dfdc1fbdb1350 (patch)
treed4e0c6d14e8349c7732b0c99dbf94805b9c440af /gdb/common
parentaa8d949fea586df2ae849e36bbdf32aef7cbea35 (diff)
downloadgdb-437bf2c75f6735dc405530acf79dfdc1fbdb1350.tar.gz
gdb/common/linux-ptrace.c: Fix build on non-Intel architectures.
As uintptr_t is used stdint.h must be included on all architectures. 2013-08-28 Will Newton <will.newton@linaro.org> * common/linux-ptrace.c: Include stdint.h unconditionally.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/linux-ptrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
index a4a2ca3a91a..3a8e25e6913 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__ */