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.
This commit is contained in:
Gary Benson 2015-06-24 11:59:03 +01:00
parent 44d51e2c27
commit dc06243f6f
26 changed files with 30 additions and 45 deletions

View 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

View 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)
{

View File

@ -19,8 +19,6 @@
#include "common-defs.h"
#include "print-utils.h"
#include <stdint.h>
/* Temporary storage using circular buffer. */
#define NUMCELLS 16

View 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"

View 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

View 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"

View 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

View 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"

View File

@ -17,8 +17,6 @@
#include "server.h"
#include "lynx-low.h"
#include <stdint.h>
#include <limits.h>
#include <sys/ptrace.h>

View File

@ -17,8 +17,6 @@
#include "server.h"
#include "lynx-low.h"
#include <stdint.h>
#include <limits.h>
#include <sys/ptrace.h>

View 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;

View 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>

View File

@ -27,8 +27,6 @@
#include <unistd.h>
#include <sys/time.h>
#include <inttypes.h>
#include <stdint.h>
#include "ax.h"
#include "tdesc.h"

View 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>

View File

@ -21,7 +21,6 @@
conventions, et.al. */
#include "defs.h"
#include <stdint.h>
#include "guile-internal.h"
/* Define VARIABLES in the gdb module. */

View 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"

View 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"

View 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>

View 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

View 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. */

View 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

View 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>

View 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

View File

@ -22,8 +22,6 @@
#include "defs.h"
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif

View 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

View 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>