]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf2: remove unused includes
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 2 Apr 2025 16:42:35 +0000 (12:42 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 2 Apr 2025 16:42:35 +0000 (12:42 -0400)
Remove some includes reported as unused by clangd.

Change-Id: I841938c3c6254e4f0d154a1e172c4968ff326333

gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h
gdb/dwarf2/cooked-indexer.h
gdb/dwarf2/parent-map.c

index a632474dff82de781b839fc507f22283bb8e8b24..7a32a279cdb4e0c9681440afe0a4ded68c9c75cf 100644 (file)
 #include "dwarf2/cooked-index.h"
 #include "dwarf2/read.h"
 #include "dwarf2/stringify.h"
-#include "dwarf2/index-cache.h"
 #include "event-top.h"
-#include "split-name.h"
 #include "observable.h"
 #include "run-on-main-thread.h"
-#include <algorithm>
 #include "gdbsupport/task-group.h"
-#include <chrono>
 #include "cli/cli-cmds.h"
 
 /* We don't want gdb to exit while it is in the process of writing to
index c16afa04037246867a76364687ffa0c5d78aaba5..583fa30004309fc1dd3aa3ca089d94613445b036 100644 (file)
 #ifndef GDB_DWARF2_COOKED_INDEX_H
 #define GDB_DWARF2_COOKED_INDEX_H
 
-#include "dwarf2.h"
 #include "dwarf2/cooked-index-entry.h"
-#include "dwarf2/types.h"
 #include "symtab.h"
-#include "hashtab.h"
 #include "quick-symbol.h"
-#include "gdbsupport/gdb_obstack.h"
 #include "addrmap.h"
 #include "dwarf2/mapped-index.h"
 #include "dwarf2/read.h"
 #include "dwarf2/parent-map.h"
 #include "gdbsupport/range-chain.h"
-#include "complaints.h"
 #include "dwarf2/cooked-index-shard.h"
 #include "dwarf2/cooked-index-worker.h"
 
index 99e9fddd9ba97544da75c3e08505ff3a60807969..904c55f955e9a3f79d41a3f3eb82c5c1bcead734 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef GDB_DWARF2_COOKED_INDEXER_H
 #define GDB_DWARF2_COOKED_INDEXER_H
 
-#include "dwarf2/cooked-index.h"
+#include "dwarf2/cooked-index-entry.h"
 #include "dwarf2/parent-map.h"
 #include "dwarf2/types.h"
 #include <variant>
index d029a76294a0c07e60b745c08cce51131c8c2d76..6f290c14c43fd326c8a13f5b74312af68d2ed156 100644 (file)
@@ -17,7 +17,7 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#include "dwarf2/cooked-index.h"
+#include "dwarf2/cooked-index-entry.h"
 #include "dwarf2/read.h"
 #include "dwarf2/parent-map.h"