]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't include gdbarch.h from defs.h
authorTom Tromey <tom@tromey.com>
Sun, 9 Jun 2019 21:21:02 +0000 (15:21 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 10 Jul 2019 20:53:53 +0000 (14:53 -0600)
commit0d12e84cfc9bd36b7bbda01a3c8f83f65a832398
treefce7585f8f4259ff311de757c72f5e384ba72e7b
parentf06f1252b0b8ef20adb4296faaf8293c9d36f615
Don't include gdbarch.h from defs.h

I touched symtab.h and was surprised to see how many files were
rebuilt.  I looked into it a bit, and found that defs.h includes
gdbarch.h, which in turn includes many things.

gdbarch.h is only needed by a minority ofthe files in gdb, so this
patch removes the include from defs.h and updates the fallout.

I did "wc -l" on the files in build/gdb/.deps; this patch reduces the
line count from 139935 to 137030; so there are definitely future
build-time savings here.

Note that while I configured with --enable-targets=all, it's possible
that some *-nat.c file needs an update.  I could not test all of
these.  The buildbot caught a few problems along these lines.

gdb/ChangeLog
2019-07-10  Tom Tromey  <tom@tromey.com>

* defs.h: Don't include gdbarch.h.
* aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
record-btrace.c, record.h, regcache-dump.c, regcache.h,
riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
* s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
103 files changed:
gdb/ChangeLog
gdb/aarch64-ravenscar-thread.c
gdb/aarch64-tdep.c
gdb/alpha-bsd-tdep.h
gdb/alpha-linux-tdep.c
gdb/alpha-mdebug-tdep.c
gdb/arch-utils.h
gdb/arm-tdep.h
gdb/ax-general.c
gdb/btrace.c
gdb/buildsym-legacy.c
gdb/buildsym.h
gdb/c-lang.c
gdb/cli/cli-cmds.h
gdb/cli/cli-decode.h
gdb/cli/cli-dump.c
gdb/cli/cli-script.h
gdb/cli/cli-style.h
gdb/coff-pe-read.h
gdb/compile/compile-c-support.c
gdb/compile/compile-cplus.h
gdb/compile/compile-loc2c.c
gdb/corefile.c
gdb/cp-valprint.c
gdb/cris-linux-tdep.c
gdb/ctf.c
gdb/d-lang.c
gdb/d-namespace.c
gdb/dcache.c
gdb/defs.h
gdb/dicos-tdep.c
gdb/dictionary.c
gdb/disasm-selftests.c
gdb/dummy-frame.c
gdb/dummy-frame.h
gdb/dwarf2-frame-tailcall.c
gdb/dwarf2expr.c
gdb/expression.h
gdb/f-lang.c
gdb/frame-base.c
gdb/frame-unwind.c
gdb/frv-linux-tdep.c
gdb/gdbarch-selftests.c
gdb/gdbtypes.h
gdb/go-lang.c
gdb/hppa-nbsd-tdep.c
gdb/hppa-obsd-tdep.c
gdb/i386-dicos-tdep.c
gdb/i386-tdep.h
gdb/ia64-vms-tdep.c
gdb/inf-ptrace.c
gdb/interps.h
gdb/language.c
gdb/linux-record.c
gdb/location.h
gdb/m2-lang.c
gdb/m32r-linux-tdep.c
gdb/mem-break.c
gdb/memattr.c
gdb/mn10300-linux-tdep.c
gdb/nios2-linux-tdep.c
gdb/objfiles.h
gdb/opencl-lang.c
gdb/or1k-linux-tdep.c
gdb/p-lang.c
gdb/parser-defs.h
gdb/ppc-tdep.h
gdb/probe.h
gdb/procfs.c
gdb/python/py-record-btrace.c
gdb/record-btrace.c
gdb/record.h
gdb/regcache-dump.c
gdb/regcache.h
gdb/riscv-fbsd-tdep.c
gdb/riscv-linux-tdep.c
gdb/rust-exp.y
gdb/s390-linux-nat.c
gdb/sh-linux-tdep.c
gdb/sh-nbsd-tdep.c
gdb/source-cache.c
gdb/sparc-nbsd-tdep.c
gdb/sparc-obsd-tdep.c
gdb/sparc-ravenscar-thread.c
gdb/sparc64-fbsd-tdep.c
gdb/std-regs.c
gdb/target-descriptions.h
gdb/target-float.c
gdb/tic6x-linux-tdep.c
gdb/tilegx-linux-tdep.c
gdb/top.c
gdb/tracefile.c
gdb/trad-frame.c
gdb/type-stack.h
gdb/ui-style.c
gdb/utils.c
gdb/utils.h
gdb/valarith.c
gdb/valprint.c
gdb/varobj.c
gdb/x86-tdep.c
gdb/xml-support.h
gdb/xtensa-linux-tdep.c