Remove redundant include directives.
authorGary Benson <gbenson@redhat.com>
Wed, 24 Jun 2015 10:59:03 +0000 (11:59 +0100)
committerGary Benson <gbenson@redhat.com>
Wed, 24 Jun 2015 12:52:29 +0000 (13:52 +0100)
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.

26 files changed:
gdb/ChangeLog
gdb/common/buffer.c
gdb/common/print-utils.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-c-types.c
gdb/ft32-tdep.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-i386-ipa.c
gdb/gdbserver/lynx-i386-low.c
gdb/gdbserver/lynx-ppc-low.c
gdb/gdbserver/mem-break.c
gdb/gdbserver/thread-db.c
gdb/gdbserver/tracepoint.c
gdb/gdbserver/win32-low.c
gdb/guile/scm-utils.c
gdb/i386-linux-tdep.c
gdb/i386-tdep.c
gdb/nat/linux-btrace.c
gdb/nat/linux-btrace.h
gdb/nat/linux-ptrace.c
gdb/nat/mips-linux-watch.h
gdb/ppc-linux-nat.c
gdb/python/python-internal.h
gdb/stub-termcap.c
gdb/target/target.h
gdb/xtensa-linux-nat.c

index 99ff2fb22c697245e4e734831d392e3928b89b66..0d0fe107ad7fcaf23da9eac8ca6fd3b2e30c172a 100644 (file)
@@ -1,3 +1,23 @@
+2015-06-24  Gary Benson  <gbenson@redhat.com>
+
+       * 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.
+
 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
 
        * top.c (init_history): Look at errno after calling strtol to
index 28b2625f069301ccf1994e4918d94a0f1b3f2e00..ca1636dcd73bddef6b45be5a37771024347b0dad 100644 (file)
@@ -21,8 +21,6 @@
 #include "xml-utils.h"
 #include "buffer.h"
 #include "inttypes.h"
-#include <stdint.h>
-
 void
 buffer_grow (struct buffer *buffer, const char *data, size_t size)
 {
index c8ff1332f727f8efa74af92ee2bf6206239e414d..1c1a5c1fd4b15577ef976ea2b882c925ce8a81ce 100644 (file)
@@ -19,8 +19,6 @@
 
 #include "common-defs.h"
 #include "print-utils.h"
-#include <stdint.h>
-
 /* Temporary storage using circular buffer.  */
 
 #define NUMCELLS 16
index 455114c4c17991115a530285bbe56d9e0dfece63..68d38ba2f71017e64a9af2472cbf24a982757c07 100644 (file)
@@ -20,7 +20,6 @@
 
 #include "defs.h"
 #include "compile-internal.h"
-#include "gdb_assert.h"
 #include "symtab.h"
 #include "parser-defs.h"
 #include "block.h"
index 2b521bcb72f63f6f0c18b8ffad0326c69f6acae9..22f5a9d839944d3bab89d45c575dc7f271f3ab82 100644 (file)
@@ -21,8 +21,6 @@
 #include "defs.h"
 #include "gdbtypes.h"
 #include "compile-internal.h"
-#include "gdb_assert.h"
-
 /* An object that maps a gdb type to a gcc type.  */
 
 struct type_map_instance
index 41a71919766a1765f4e47886ffcb3d276a81fee4..e7f4d1a6061411b68326424501ccec2cd080a166 100644 (file)
@@ -37,8 +37,6 @@
 #include "dis-asm.h"
 #include "record.h"
 
-#include "gdb_assert.h"
-
 #include "ft32-tdep.h"
 #include "gdb/sim-ft32.h"
 
index 7c380c146db933c0ea3b3621eb00886063efe13d..2528f0f5d116c07a78f1311d6d0153b8b0efde03 100644 (file)
@@ -1,3 +1,13 @@
+2015-06-24  Gary Benson  <gbenson@redhat.com>
+
+       * 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.
+
 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
 
        * server.c (write_qxfer_response): Update call to
index eb30dcd700aa06de4738a20b9370ebf6a5fd4e60..de8d39465095355efdc37913a85ee749933967cd 100644 (file)
@@ -19,7 +19,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "server.h"
-#include <stdint.h>
 #include <sys/mman.h>
 #include "tracepoint.h"
 
index bd588c6424b061da9890017f64ed2cf245b346f4..6b5a224b7aa9c2fe8b90c9fa8aca6d2145ac45e0 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "server.h"
 #include "lynx-low.h"
-
-#include <stdint.h>
 #include <limits.h>
 #include <sys/ptrace.h>
 
index 51d450f13a118586433fc79446b4e8b574c0f69f..0f31eaf71a84807ce0adcb6b4b7dbea145ef1c46 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "server.h"
 #include "lynx-low.h"
-
-#include <stdint.h>
 #include <limits.h>
 #include <sys/ptrace.h>
 
index d1b66bf1eeb093c7dbd48d4eaa556bdc6c526d6e..4eaa52bffba1ee12a1ea1ba104cabaaa20263c23 100644 (file)
@@ -21,8 +21,6 @@
 #include "server.h"
 #include "regcache.h"
 #include "ax.h"
-#include <stdint.h>
-
 const unsigned char *breakpoint_data;
 int breakpoint_len;
 
index 5bf808e2282a7114cf963b573bf141a455731c29..4288fdb9d31389e50ae1854e426521bb539d6c81 100644 (file)
@@ -34,8 +34,6 @@ static int thread_db_use_events;
 #ifndef USE_LIBTHREAD_DB_DIRECTLY
 #include <dlfcn.h>
 #endif
-
-#include <stdint.h>
 #include <limits.h>
 #include <ctype.h>
 
index 3ce958066f7447b5843bf259740409fdfc9fdd33..b5f252a53509e7fcd7144d49e425ff3c771ab82a 100644 (file)
@@ -27,8 +27,6 @@
 #include <unistd.h>
 #include <sys/time.h>
 #include <inttypes.h>
-#include <stdint.h>
-
 #include "ax.h"
 #include "tdesc.h"
 
index 699115ca6ba7322db438e34cf2a25a72dd4a4392..64caf2483934352affe0ffd32d5669b45a9dda24 100644 (file)
@@ -26,8 +26,6 @@
 #include "gdbthread.h"
 #include "dll.h"
 #include "hostio.h"
-
-#include <stdint.h>
 #include <windows.h>
 #include <winnt.h>
 #include <imagehlp.h>
index 59d8b5281bc31ea9243b2bb744a668590db2e04d..07401e6476e3362a5beda722619af17e52d08127 100644 (file)
@@ -21,7 +21,6 @@
    conventions, et.al.  */
 
 #include "defs.h"
-#include <stdint.h>
 #include "guile-internal.h"
 
 /* Define VARIABLES in the gdb module.  */
index 061ad3a74c1a16347e6d44d335d239216b84660b..7c2e322f8aaa701869026155ac4d461270f4387a 100644 (file)
@@ -44,8 +44,6 @@
 
 #include "record-full.h"
 #include "linux-record.h"
-#include <stdint.h>
-
 #include "features/i386/i386-linux.c"
 #include "features/i386/i386-mmx-linux.c"
 #include "features/i386/i386-mpx-linux.c"
index 42d0346bfbaa89ec7a40d4141e43ff41cc5333ed..85e433e6e5442af2d18368b2ead152432f0e6c5e 100644 (file)
@@ -50,8 +50,6 @@
 
 #include "record.h"
 #include "record-full.h"
-#include <stdint.h>
-
 #include "features/i386/i386.c"
 #include "features/i386/i386-avx.c"
 #include "features/i386/i386-mpx.c"
index e7aff5e4ad3782f41348bdc8dc2bd2032738d209..cd7f3d15500fcacd0c11ef2150ff01d7219c917d 100644 (file)
@@ -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>
index 12cdcde596e6014b67f4c19471378a7ef0061231..bb4a8c564076ea15e71c973493653c2f0d76d9f2 100644 (file)
@@ -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
index fb1260600019493a4ed422038f15805f04a71526..1a926f93156c9bde4f92c38786c01b125d45633c 100644 (file)
@@ -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.  */
index 571cde4d351eab38374cc7a5a6eca7b179a18791..10ed6ba574ceddcde5858dc7eebbdf5176867245 100644 (file)
@@ -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
index 88ca49e3d449fff8b28f6ee310e7232af0a7b6a4..4ed03d0204d0fbb62ce51c6268f3e560408c6468 100644 (file)
@@ -26,8 +26,6 @@
 #include "regcache.h"
 #include "target.h"
 #include "linux-nat.h"
-
-#include <stdint.h>
 #include <sys/types.h>
 #include <signal.h>
 #include <sys/user.h>
index f881559d292b6067b5a9f1271cff29f9d33550b2..ee949b7025cd6d936ca286a75d49ce0b81bafe02 100644 (file)
@@ -65,8 +65,6 @@
 
 /* Python 2.4 doesn't include stdint.h soon enough to get {u,}intptr_t
    needed by pyport.h.  */
-#include <stdint.h>
-
 /* /usr/include/features.h on linux systems will define _POSIX_C_SOURCE
    if it sees _GNU_SOURCE (which config.h will define).
    pyconfig.h defines _POSIX_C_SOURCE to a different value than
index 722929f741c378e7530dc9cc8f45bf9561bd403f..2ee1c04469fdafae38e16e1abc5a4554e5f53132 100644 (file)
@@ -22,8 +22,6 @@
 
 #include "defs.h"
 
-#include <stdlib.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
index 05ac75811774dd94314283bd3d024d5970914a66..6ee0feeec0b47f37ec5c4233027daa3882665aaa 100644 (file)
@@ -21,8 +21,6 @@
 #define TARGET_COMMON_H
 
 #include "target/waitstatus.h"
-#include <stdint.h>
-
 /* This header is a stopgap until more code is shared.  */
 
 /* Read LEN bytes of target memory at address MEMADDR, placing the
index 921bc99644bb68faff0b03b8e76b401cb7a24f92..fa627320d6ffc481bb0be78822108b1de78320cc 100644 (file)
@@ -24,8 +24,6 @@
 #include "regcache.h"
 #include "target.h"
 #include "linux-nat.h"
-
-#include <stdint.h>
 #include <sys/types.h>
 #include <signal.h>
 #include <sys/user.h>