]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf2: cleanup includes
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 29 Aug 2024 16:31:31 +0000 (12:31 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 30 Aug 2024 17:57:11 +0000 (13:57 -0400)
commite5afccc7e45964ed2f339c8f3ff7186a80a2bdb0
tree21bdba780f9499c358e618b2293306aea5f042c1
parent71e0850800c70e5a7b8c9fd7d4065d2f7853262e
gdb/dwarf2: cleanup includes

Cleanup includes in dwarf2/*.

 1. Add the necessary includes so that clangd reports no errors when
    opening header files.  This ensures that header files include what
    they use.

 2. Remove all includes reported as unused by clangd (except
    gdb-safe-ctype.h, which I think does some magic that affects what
    follows).

Built-tested --enable-threading at "yes" and "no", since there are some
portions of code gated by `#ifdef CXX_STD_THREAD`.

Change-Id: I21debffcd7c2caf90f08e1e0fbba3ce30422d042
Approved-By: Tom Tromey <tom@tromey.com>
19 files changed:
gdb/dwarf2/abbrev-cache.c
gdb/dwarf2/abbrev.c
gdb/dwarf2/abbrev.h
gdb/dwarf2/attribute.h
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h
gdb/dwarf2/dwz.h
gdb/dwarf2/frame-tailcall.c
gdb/dwarf2/frame.c
gdb/dwarf2/index-cache.c
gdb/dwarf2/index-cache.h
gdb/dwarf2/index-write.c
gdb/dwarf2/line-header.h
gdb/dwarf2/loc.c
gdb/dwarf2/macro.h
gdb/dwarf2/mapped-index.h
gdb/dwarf2/parent-map.h
gdb/dwarf2/read.c
gdb/dwarf2/read.h