Remove duplicate or commented-out #includes
I wrote a little script to detect duplicate or commented-out #includes and ran it on gdb. This patch is the result. Tested by rebuilding. gdb/ChangeLog 2019-01-21 Tom Tromey <tom@tromey.com> * ui-out.c: Fix includes. * tui/tui-source.c: Fix includes. * target.c: Fix includes. * remote.c: Fix includes. * regcache.c: Fix includes. * python/py-block.c: Fix includes. * printcmd.c: Fix includes. * or1k-tdep.c: Fix includes. * mi/mi-main.c: Fix includes. * m32r-tdep.c: Fix includes. * csky-tdep.c: Fix includes. * compile/compile-cplus-types.c: Fix includes. * cli/cli-interp.c: Fix includes. gdb/gdbserver/ChangeLog 2019-01-21 Tom Tromey <tom@tromey.com> * tracepoint.c: Fix includes. * remote-utils.c: Fix includes. * linux-x86-low.c: Fix includes. gdb/stubs/ChangeLog 2019-01-21 Tom Tromey <tom@tromey.com> * ia64vms-stub.c: Fix includes.
This commit is contained in:
parent
d7167c671d
commit
be6d4f74c7
@ -1,3 +1,19 @@
|
||||
2019-01-21 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* ui-out.c: Fix includes.
|
||||
* tui/tui-source.c: Fix includes.
|
||||
* target.c: Fix includes.
|
||||
* remote.c: Fix includes.
|
||||
* regcache.c: Fix includes.
|
||||
* python/py-block.c: Fix includes.
|
||||
* printcmd.c: Fix includes.
|
||||
* or1k-tdep.c: Fix includes.
|
||||
* mi/mi-main.c: Fix includes.
|
||||
* m32r-tdep.c: Fix includes.
|
||||
* csky-tdep.c: Fix includes.
|
||||
* compile/compile-cplus-types.c: Fix includes.
|
||||
* cli/cli-interp.c: Fix includes.
|
||||
|
||||
2019-01-21 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
|
||||
|
@ -24,7 +24,6 @@
|
||||
#include "ui-out.h"
|
||||
#include "cli-out.h"
|
||||
#include "top.h" /* for "execute_command" */
|
||||
#include "event-top.h"
|
||||
#include "infrun.h"
|
||||
#include "observable.h"
|
||||
#include "gdbthread.h"
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "source.h"
|
||||
#include "cp-support.h"
|
||||
#include "cp-abi.h"
|
||||
#include "symtab.h"
|
||||
#include "objfiles.h"
|
||||
#include "block.h"
|
||||
#include "gdbcmd.h"
|
||||
|
@ -52,10 +52,8 @@
|
||||
#include "dwarf2-frame.h"
|
||||
#include "user-regs.h"
|
||||
#include "valprint.h"
|
||||
#include "reggroups.h"
|
||||
#include "csky-tdep.h"
|
||||
#include "regset.h"
|
||||
#include "block.h"
|
||||
#include "opcode/csky.h"
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
@ -1,3 +1,9 @@
|
||||
2019-01-21 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tracepoint.c: Fix includes.
|
||||
* remote-utils.c: Fix includes.
|
||||
* linux-x86-low.c: Fix includes.
|
||||
|
||||
2019-01-01 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* gdbreplay.c (gdbreplay_version): Update copyright year in
|
||||
|
@ -72,7 +72,6 @@ static const char *xmltarget_amd64_linux_no_xml = "@<target>\
|
||||
|
||||
#include <sys/reg.h>
|
||||
#include <sys/procfs.h>
|
||||
#include "nat/gdb_ptrace.h"
|
||||
#include <sys/uio.h>
|
||||
|
||||
#ifndef PTRACE_GET_THREAD_AREA
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "tdesc.h"
|
||||
#include "dll.h"
|
||||
#include "rsp-low.h"
|
||||
#include "gdbthread.h"
|
||||
#include "netstuff.h"
|
||||
#include "filestuff.h"
|
||||
#include <ctype.h>
|
||||
|
@ -7330,7 +7330,6 @@ gdb_agent_init (void)
|
||||
}
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
IP_AGENT_EXPORT_VAR char *gdb_tp_heap_buffer;
|
||||
IP_AGENT_EXPORT_VAR char *gdb_jump_pad_buffer;
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include "regcache.h"
|
||||
#include "trad-frame.h"
|
||||
#include "dis-asm.h"
|
||||
#include "objfiles.h"
|
||||
#include "m32r-tdep.h"
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include "mi-common.h"
|
||||
#include "language.h"
|
||||
#include "valprint.h"
|
||||
#include "inferior.h"
|
||||
#include "osdata.h"
|
||||
#include "common/gdb_splay_tree.h"
|
||||
#include "tracepoint.h"
|
||||
|
@ -33,7 +33,6 @@
|
||||
#include "block.h"
|
||||
#include "reggroups.h"
|
||||
#include "arch-utils.h"
|
||||
#include "frame.h"
|
||||
#include "frame-unwind.h"
|
||||
#include "frame-base.h"
|
||||
#include "dwarf2-frame.h"
|
||||
|
@ -50,7 +50,6 @@
|
||||
#include "format.h"
|
||||
#include "source.h"
|
||||
#include "common/byte-vector.h"
|
||||
#include "cli/cli-style.h"
|
||||
|
||||
/* Last specified output format. */
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "symtab.h"
|
||||
#include "python-internal.h"
|
||||
#include "objfiles.h"
|
||||
#include "symtab.h"
|
||||
|
||||
typedef struct blpy_block_object {
|
||||
PyObject_HEAD
|
||||
|
@ -1419,7 +1419,6 @@ register_dump::dump (ui_file *file)
|
||||
#if GDB_SELF_TEST
|
||||
#include "selftest.h"
|
||||
#include "selftest-arch.h"
|
||||
#include "gdbthread.h"
|
||||
#include "target-float.h"
|
||||
|
||||
namespace selftests {
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "symfile.h"
|
||||
#include "target.h"
|
||||
#include "process-stratum-target.h"
|
||||
/*#include "terminal.h" */
|
||||
#include "gdbcmd.h"
|
||||
#include "objfiles.h"
|
||||
#include "gdb-stabs.h"
|
||||
|
@ -1,3 +1,7 @@
|
||||
2019-01-21 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* ia64vms-stub.c: Fix includes.
|
||||
|
||||
2012-12-19 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* buildvms.com: Add copyright header.
|
||||
|
@ -56,7 +56,6 @@
|
||||
#include <builtins.h>
|
||||
#include <prtdef.h>
|
||||
#include <psldef.h>
|
||||
#include <ssdef.h>
|
||||
#include <chfdef.h>
|
||||
|
||||
#include <lib_c/imcbdef.h>
|
||||
|
@ -48,7 +48,6 @@
|
||||
#include <algorithm>
|
||||
#include "byte-vector.h"
|
||||
#include "terminal.h"
|
||||
#include <algorithm>
|
||||
#include <unordered_map>
|
||||
|
||||
static void generic_tls_error (void) ATTRIBUTE_NORETURN;
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "frame.h"
|
||||
#include "breakpoint.h"
|
||||
#include "source.h"
|
||||
#include "symtab.h"
|
||||
#include "objfiles.h"
|
||||
#include "filenames.h"
|
||||
#include "source-cache.h"
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
namespace {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user