Remove duplicated #include's from GDB
This patch simply removes duplicated #include statements in the gdb/ directory. If there are two duplicated #include statements, this patch keeps the first #include and removes the second. Those duplicates have been found by using the checkincludes.pl tool from the Linux kernel and double checked manually once again if the #include statements are affected by #ifdef macros. 2014-01-06 Honggyu Kim <hong.gyu.kim@lge.com> * ada-lang.c: Remove duplicated include statements. * alphabsd-nat.c: Ditto. * amd64-darwin-tdep.c: Ditto. * amd64fbsd-nat.c: Ditto. * auto-load.c: Ditto. * ax-gdb.c: Ditto. * breakpoint.c: Ditto. * dbxread.c: Ditto. * fork-child.c: Ditto. * gdb_usleep.c: Ditto. * i386-darwin-tdep.c: Ditto. * i386fbsd-nat.c: Ditto. * infcmd.c: Ditto. * inferior.c: Ditto. * jv-lang.c: Ditto. * linux-nat.c: Ditto. * linux-tdep.c: Ditto. * m68kbsd-nat.c: Ditto. * m68klinux-nat.c: Ditto. * microblaze-tdep.c: Ditto. * mips-linux-tdep.c: Ditto. * mn10300-tdep.c: Ditto. * nto-tdep.c: Ditto. * opencl-lang.c: Ditto. * osdata.c: Ditto. * printcmd.c: Ditto. * regcache.c: Ditto. * remote-m32r-sdi.c: Ditto. * remote.c: Ditto. * symfile.c: Ditto. * symtab.c: Ditto. * tilegx-linux-nat.c: Ditto. * tilegx-tdep.c: Ditto. * tracepoint.c: Ditto. * valops.c: Ditto. * vaxbsd-nat.c: Ditto. * windows-nat.c: Ditto. * xtensa-tdep.c: Ditto.
This commit is contained in:
parent
bd1f77885b
commit
e261678878
@ -1,3 +1,44 @@
|
||||
2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
|
||||
|
||||
* ada-lang.c: Remove duplicated include statements.
|
||||
* alphabsd-nat.c: Ditto.
|
||||
* amd64-darwin-tdep.c: Ditto.
|
||||
* amd64fbsd-nat.c: Ditto.
|
||||
* auto-load.c: Ditto.
|
||||
* ax-gdb.c: Ditto.
|
||||
* breakpoint.c: Ditto.
|
||||
* dbxread.c: Ditto.
|
||||
* fork-child.c: Ditto.
|
||||
* gdb_usleep.c: Ditto.
|
||||
* i386-darwin-tdep.c: Ditto.
|
||||
* i386fbsd-nat.c: Ditto.
|
||||
* infcmd.c: Ditto.
|
||||
* inferior.c: Ditto.
|
||||
* jv-lang.c: Ditto.
|
||||
* linux-nat.c: Ditto.
|
||||
* linux-tdep.c: Ditto.
|
||||
* m68kbsd-nat.c: Ditto.
|
||||
* m68klinux-nat.c: Ditto.
|
||||
* microblaze-tdep.c: Ditto.
|
||||
* mips-linux-tdep.c: Ditto.
|
||||
* mn10300-tdep.c: Ditto.
|
||||
* nto-tdep.c: Ditto.
|
||||
* opencl-lang.c: Ditto.
|
||||
* osdata.c: Ditto.
|
||||
* printcmd.c: Ditto.
|
||||
* regcache.c: Ditto.
|
||||
* remote-m32r-sdi.c: Ditto.
|
||||
* remote.c: Ditto.
|
||||
* symfile.c: Ditto.
|
||||
* symtab.c: Ditto.
|
||||
* tilegx-linux-nat.c: Ditto.
|
||||
* tilegx-tdep.c: Ditto.
|
||||
* tracepoint.c: Ditto.
|
||||
* valops.c: Ditto.
|
||||
* vaxbsd-nat.c: Ditto.
|
||||
* windows-nat.c: Ditto.
|
||||
* xtensa-tdep.c: Ditto.
|
||||
|
||||
2014-01-07 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* spu-linux-nat.c (_initialize_spu_nat): Declare.
|
||||
|
@ -64,7 +64,6 @@
|
||||
#include "value.h"
|
||||
#include "mi/mi-common.h"
|
||||
#include "arch-utils.h"
|
||||
#include "exceptions.h"
|
||||
#include "cli/cli-utils.h"
|
||||
|
||||
/* Define whether or not the C operator '/' truncates towards zero for
|
||||
|
@ -157,7 +157,6 @@ alphabsd_store_inferior_registers (struct target_ops *ops,
|
||||
|
||||
/* Support for debugging kernel virtual memory images. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/signal.h>
|
||||
#include <machine/pcb.h>
|
||||
|
||||
|
@ -33,8 +33,6 @@
|
||||
#include "amd64-tdep.h"
|
||||
#include "osabi.h"
|
||||
#include "ui-out.h"
|
||||
#include "symtab.h"
|
||||
#include "frame.h"
|
||||
#include "amd64-darwin-tdep.h"
|
||||
#include "i386-darwin-tdep.h"
|
||||
#include "solib.h"
|
||||
|
@ -95,7 +95,6 @@ static int amd64fbsd32_r_reg_offset[I386_NUM_GREGS] =
|
||||
|
||||
/* Support for debugging kernel virtual memory images. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/pcb.h>
|
||||
#include <osreldate.h>
|
||||
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include "gdb_vecs.h"
|
||||
#include "readline/tilde.h"
|
||||
#include "completer.h"
|
||||
#include "observer.h"
|
||||
#include "fnmatch.h"
|
||||
#include "top.h"
|
||||
#include "filestuff.h"
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include "block.h"
|
||||
#include "regcache.h"
|
||||
#include "user-regs.h"
|
||||
#include "language.h"
|
||||
#include "dictionary.h"
|
||||
#include "breakpoint.h"
|
||||
#include "tracepoint.h"
|
||||
|
@ -66,7 +66,6 @@
|
||||
#include "continuations.h"
|
||||
#include "stack.h"
|
||||
#include "skip.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "ax-gdb.h"
|
||||
#include "dummy-frame.h"
|
||||
|
||||
|
@ -58,7 +58,6 @@
|
||||
#include "block.h"
|
||||
|
||||
#include "gdb_assert.h"
|
||||
#include <string.h>
|
||||
|
||||
#include "aout/aout64.h"
|
||||
#include "aout/stab_gnu.h" /* We always use GNU stabs, not
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "gdb_wait.h"
|
||||
#include "gdb_vfork.h"
|
||||
#include "gdbcore.h"
|
||||
#include "terminal.h"
|
||||
#include "gdbthread.h"
|
||||
#include "command.h" /* for dont_repeat () */
|
||||
#include "gdbcmd.h"
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "defs.h"
|
||||
#include "gdb_usleep.h"
|
||||
#include "gdb_select.h"
|
||||
#include "gdb_usleep.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
|
@ -33,8 +33,6 @@
|
||||
#include "i386-tdep.h"
|
||||
#include "osabi.h"
|
||||
#include "ui-out.h"
|
||||
#include "symtab.h"
|
||||
#include "frame.h"
|
||||
#include "gdb_assert.h"
|
||||
#include "i386-darwin-tdep.h"
|
||||
#include "solib.h"
|
||||
|
@ -82,7 +82,6 @@ i386fbsd_resume (struct target_ops *ops,
|
||||
|
||||
/* Support for debugging kernel virtual memory images. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/pcb.h>
|
||||
|
||||
#include "bsd-kvm.h"
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "gdbcore.h"
|
||||
#include "target.h"
|
||||
#include "language.h"
|
||||
#include "symfile.h"
|
||||
#include "objfiles.h"
|
||||
#include "completer.h"
|
||||
#include "ui-out.h"
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "gdbthread.h"
|
||||
#include "ui-out.h"
|
||||
#include "observer.h"
|
||||
#include "gdbthread.h"
|
||||
#include "gdbcore.h"
|
||||
#include "symfile.h"
|
||||
#include "environ.h"
|
||||
|
@ -23,8 +23,6 @@
|
||||
#include "expression.h"
|
||||
#include "parser-defs.h"
|
||||
#include "language.h"
|
||||
#include "gdbtypes.h"
|
||||
#include "symtab.h"
|
||||
#include "symfile.h"
|
||||
#include "objfiles.h"
|
||||
#include <string.h>
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "gregset.h" /* for gregset */
|
||||
#include "gdbcore.h" /* for get_exec_file */
|
||||
#include <ctype.h> /* for isdigit */
|
||||
#include "gdbthread.h" /* for struct thread_info etc. */
|
||||
#include <sys/stat.h> /* for struct stat */
|
||||
#include <fcntl.h> /* for O_RDONLY */
|
||||
#include "inf-loop.h"
|
||||
@ -65,7 +64,6 @@
|
||||
#include "agent.h"
|
||||
#include "tracepoint.h"
|
||||
#include "exceptions.h"
|
||||
#include "linux-ptrace.h"
|
||||
#include "buffer.h"
|
||||
#include "target-descriptions.h"
|
||||
#include "filestuff.h"
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "cli/cli-utils.h"
|
||||
#include "arch-utils.h"
|
||||
#include "gdb_obstack.h"
|
||||
#include "cli/cli-utils.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
|
@ -176,7 +176,6 @@ m68kbsd_store_inferior_registers (struct target_ops *ops,
|
||||
|
||||
/* Support for debugging kernel virtual memory images. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/pcb.h>
|
||||
|
||||
#include "bsd-kvm.h"
|
||||
|
@ -46,8 +46,6 @@
|
||||
|
||||
#include "floatformat.h"
|
||||
|
||||
#include "target.h"
|
||||
|
||||
/* Prototypes for supply_gregset etc. */
|
||||
#include "gregset.h"
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "inferior.h"
|
||||
#include "regcache.h"
|
||||
#include "target.h"
|
||||
#include "frame.h"
|
||||
#include "frame-base.h"
|
||||
#include "frame-unwind.h"
|
||||
#include "dwarf2-frame.h"
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "gdbtypes.h"
|
||||
#include "objfiles.h"
|
||||
#include "solib.h"
|
||||
#include "solib-svr4.h"
|
||||
#include "solist.h"
|
||||
#include "symtab.h"
|
||||
#include "target-descriptions.h"
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "gdb_assert.h"
|
||||
#include "gdbcore.h" /* For write_memory_unsigned_integer. */
|
||||
#include "value.h"
|
||||
#include "gdbtypes.h"
|
||||
#include "frame.h"
|
||||
#include "frame-unwind.h"
|
||||
#include "frame-base.h"
|
||||
|
@ -32,8 +32,6 @@
|
||||
#include "gdbcore.h"
|
||||
#include "objfiles.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#include <sys/cygwin.h>
|
||||
#endif
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "symtab.h"
|
||||
#include "expression.h"
|
||||
#include "parser-defs.h"
|
||||
#include "symtab.h"
|
||||
#include "language.h"
|
||||
#include "varobj.h"
|
||||
#include "c-lang.h"
|
||||
|
@ -45,8 +45,6 @@ osdata_parse (const char *xml)
|
||||
|
||||
#else /* HAVE_LIBEXPAT */
|
||||
|
||||
#include "xml-support.h"
|
||||
|
||||
/* Internal parsing data passed to all XML callbacks. */
|
||||
struct osdata_parsing_data
|
||||
{
|
||||
|
@ -41,7 +41,6 @@
|
||||
#include "block.h"
|
||||
#include "disasm.h"
|
||||
#include "dfp.h"
|
||||
#include "valprint.h"
|
||||
#include "exceptions.h"
|
||||
#include "observer.h"
|
||||
#include "solist.h"
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "reggroups.h"
|
||||
#include "gdb_assert.h"
|
||||
#include <string.h>
|
||||
#include "gdbcmd.h" /* For maintenanceprintlist. */
|
||||
#include "observer.h"
|
||||
#include "exceptions.h"
|
||||
#include "remote.h"
|
||||
|
@ -37,7 +37,6 @@
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
#include "gdb_bfd.h"
|
||||
#include "cli/cli-utils.h"
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "gdb_bfd.h"
|
||||
#include "filestuff.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "event-loop.h"
|
||||
|
@ -57,7 +57,6 @@
|
||||
#include "stack.h"
|
||||
#include "gdb_bfd.h"
|
||||
#include "cli/cli-utils.h"
|
||||
#include "target.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -60,7 +60,6 @@
|
||||
#include "solist.h"
|
||||
#include "macrotab.h"
|
||||
#include "macroscope.h"
|
||||
#include "ada-lang.h"
|
||||
|
||||
#include "psymtab.h"
|
||||
#include "parser-defs.h"
|
||||
|
@ -30,15 +30,12 @@
|
||||
|
||||
#include <sys/procfs.h>
|
||||
|
||||
/* Defines ps_err_e, struct ps_prochandle. */
|
||||
#include "gdb_proc_service.h"
|
||||
#include <sys/ptrace.h>
|
||||
|
||||
/* Prototypes for supply_gregset etc. */
|
||||
#include "gregset.h"
|
||||
|
||||
/* Defines ps_err_e, struct ps_prochandle. */
|
||||
#include "gdb_proc_service.h"
|
||||
|
||||
/* The register sets used in GNU/Linux ELF core-dumps are identical to
|
||||
the register sets in `struct user' that is used for a.out
|
||||
core-dumps, and is also used by `ptrace'. The corresponding types
|
||||
|
@ -41,7 +41,6 @@
|
||||
#include "linux-tdep.h"
|
||||
#include "objfiles.h"
|
||||
#include "solib-svr4.h"
|
||||
#include "symtab.h"
|
||||
#include "tilegx-tdep.h"
|
||||
#include "opcode/tilegx.h"
|
||||
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include "filenames.h"
|
||||
#include "gdbthread.h"
|
||||
#include "stack.h"
|
||||
#include "gdbcore.h"
|
||||
#include "remote.h"
|
||||
#include "source.h"
|
||||
#include "ax.h"
|
||||
@ -55,7 +54,6 @@
|
||||
#include "cli/cli-utils.h"
|
||||
#include "probe.h"
|
||||
#include "ctf.h"
|
||||
#include "completer.h"
|
||||
#include "filestuff.h"
|
||||
|
||||
/* readline include files */
|
||||
|
@ -39,10 +39,8 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include "gdb_assert.h"
|
||||
#include "cp-support.h"
|
||||
#include "observer.h"
|
||||
#include "objfiles.h"
|
||||
#include "symtab.h"
|
||||
#include "exceptions.h"
|
||||
|
||||
extern unsigned int overload_debug;
|
||||
|
@ -98,7 +98,6 @@ vaxbsd_store_inferior_registers (struct target_ops *ops,
|
||||
|
||||
/* Support for debugging kernel virtual memory images. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/pcb.h>
|
||||
|
||||
#include "bsd-kvm.h"
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include <sys/cygwin.h>
|
||||
#include <cygwin/version.h>
|
||||
#endif
|
||||
#include <signal.h>
|
||||
|
||||
#include "buildsym.h"
|
||||
#include "filenames.h"
|
||||
|
@ -37,7 +37,6 @@
|
||||
#include "dwarf2.h"
|
||||
#include "dwarf2-frame.h"
|
||||
#include "dwarf2loc.h"
|
||||
#include "frame.h"
|
||||
#include "frame-base.h"
|
||||
#include "frame-unwind.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user