aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/attribute.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-08-29 12:31:31 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-08-30 13:57:11 -0400
commite5afccc7e45964ed2f339c8f3ff7186a80a2bdb0 (patch)
tree21bdba780f9499c358e618b2293306aea5f042c1 /gdb/dwarf2/attribute.h
parent71e0850800c70e5a7b8c9fd7d4065d2f7853262e (diff)
downloadgdb-e5afccc7e45964ed2f339c8f3ff7186a80a2bdb0.zip
gdb-e5afccc7e45964ed2f339c8f3ff7186a80a2bdb0.tar.gz
gdb-e5afccc7e45964ed2f339c8f3ff7186a80a2bdb0.tar.bz2
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>
Diffstat (limited to 'gdb/dwarf2/attribute.h')
-rw-r--r--gdb/dwarf2/attribute.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/dwarf2/attribute.h b/gdb/dwarf2/attribute.h
index 3b971ad..115d006 100644
--- a/gdb/dwarf2/attribute.h
+++ b/gdb/dwarf2/attribute.h
@@ -29,7 +29,6 @@
#include "dwarf2.h"
#include "dwarf2/types.h"
-#include <optional>
/* Blocks are a bunch of untyped bytes. */
struct dwarf_block