aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-06-24 11:59:03 +0100
committerGary Benson <gbenson@redhat.com>2015-06-24 13:52:29 +0100
commitdc06243f6f87aa52222dab0ef45bb9a5119724da (patch)
tree178e8990a2a5f84feab17edc0a2e5eee9fe0bd61 /gdb/nat
parent44d51e2c27f2154970c046089be768f503b996b1 (diff)
downloadgdb-dc06243f6f87aa52222dab0ef45bb9a5119724da.zip
gdb-dc06243f6f87aa52222dab0ef45bb9a5119724da.tar.gz
gdb-dc06243f6f87aa52222dab0ef45bb9a5119724da.tar.bz2
Remove redundant include directives.
stdint.h was added to common-defs.h some months ago and should no longer be included directly by any file. gdb_assert.h was added to common-defs.h nearly a year ago, but three includes have crept in since then. This commit removes all such redundant include directives. gdb/ChangeLog: * common/buffer.c (stdint.h): Do not include. * common/print-utils.c (stdint.h): Likewise. * compile/compile-c-symbols.c (gdb_assert.h): Likewise. * compile/compile-c-types.c (gdb_assert.h): Likewise. * ft32-tdep.c (gdb_assert.h): Likewise. * guile/scm-utils.c (stdint.h): Likewise. * i386-linux-tdep.c (stdint.h): Likewise. * i386-tdep.c (stdint.h): Likewise. * nat/linux-btrace.c (stdint.h): Likewise. * nat/linux-btrace.h (stdint.h): Likewise. * nat/linux-ptrace.c (stdint.h): Likewise. * nat/mips-linux-watch.h (stdint.h): Likewise. * ppc-linux-nat.c (stdint.h): Likewise. * python/python-internal.h (stdint.h): Likewise. * stub-termcap.c (stdlib.h): Likewise. * target/target.h (stdint.h): Likewise. * xtensa-linux-nat.c (stdint.h): Likewise. gdb/gdbserver/ChangeLog: * linux-i386-ipa.c (stdint.h): Do not include. * lynx-i386-low.c (stdint.h): Likewise. * lynx-ppc-low.c (stdint.h): Likewise. * mem-break.c (stdint.h): Likewise. * thread-db.c (stdint.h): Likewise. * tracepoint.c (stdint.h): Likewise. * win32-low.c (stdint.h): Likewise.
Diffstat (limited to 'gdb/nat')
-rw-r--r--gdb/nat/linux-btrace.c2
-rw-r--r--gdb/nat/linux-btrace.h2
-rw-r--r--gdb/nat/linux-ptrace.c2
-rw-r--r--gdb/nat/mips-linux-watch.h2
4 files changed, 0 insertions, 8 deletions
diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c
index e7aff5e..cd7f3d1 100644
--- a/gdb/nat/linux-btrace.c
+++ b/gdb/nat/linux-btrace.c
@@ -30,8 +30,6 @@
#endif
#if HAVE_LINUX_PERF_EVENT_H && defined(SYS_perf_event_open)
-
-#include <stdint.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/user.h>
diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h
index 12cdcde..bb4a8c5 100644
--- a/gdb/nat/linux-btrace.h
+++ b/gdb/nat/linux-btrace.h
@@ -24,8 +24,6 @@
#include "btrace-common.h"
#include "vec.h"
-#include <stdint.h>
-
#if HAVE_LINUX_PERF_EVENT_H
# include <linux/perf_event.h>
#endif
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
index fb12606..1a926f9 100644
--- a/gdb/nat/linux-ptrace.c
+++ b/gdb/nat/linux-ptrace.c
@@ -23,8 +23,6 @@
#include "buffer.h"
#include "gdb_wait.h"
-#include <stdint.h>
-
/* Stores the ptrace options supported by the running kernel.
A value of -1 means we did not check for features yet. A value
of 0 means there are no supported features. */
diff --git a/gdb/nat/mips-linux-watch.h b/gdb/nat/mips-linux-watch.h
index 571cde4..10ed6ba 100644
--- a/gdb/nat/mips-linux-watch.h
+++ b/gdb/nat/mips-linux-watch.h
@@ -19,8 +19,6 @@
#define MIPS_LINUX_WATCH_H 1
#include <asm/ptrace.h>
-#include <stdint.h>
-
#include "break-common.h"
#define MAX_DEBUG_REGISTER 8