aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-01-28 15:17:19 -0500
committerSimon Marchi <simon.marchi@efficios.com>2025-01-30 12:46:54 -0500
commitbbd252584fdeebb9cc18fd0fe7b8bcf999e27da4 (patch)
treec038fb00d762a1533203d3d527947dc947b4e974 /gdb
parent7bdf69f1c1deb16930de0ba6dfafa6e1f71d5421 (diff)
downloadgdb-bbd252584fdeebb9cc18fd0fe7b8bcf999e27da4.zip
gdb-bbd252584fdeebb9cc18fd0fe7b8bcf999e27da4.tar.gz
gdb-bbd252584fdeebb9cc18fd0fe7b8bcf999e27da4.tar.bz2
gdb: remove includes from dwarf2/mapped-index.h
They are unused, according to clangd. Add some includes to other files, which were relying on transitive includes. Change-Id: I3bcb4be93b3a18bf44a4068f4067e567f83e1d4f
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/cooked-index.c1
-rw-r--r--gdb/dwarf2/index-cache.c1
-rw-r--r--gdb/dwarf2/mapped-index.h2
-rw-r--r--gdb/dwarf2/read-gdb-index.c1
4 files changed, 3 insertions, 2 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c
index 1b08ba4..2d9f6e9 100644
--- a/gdb/dwarf2/cooked-index.c
+++ b/gdb/dwarf2/cooked-index.c
@@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "dwarf2/cooked-index.h"
+#include "dwarf2/index-common.h"
#include "dwarf2/read.h"
#include "dwarf2/stringify.h"
#include "dwarf2/index-cache.h"
diff --git a/gdb/dwarf2/index-cache.c b/gdb/dwarf2/index-cache.c
index d34abf3..4e1aaa0 100644
--- a/gdb/dwarf2/index-cache.c
+++ b/gdb/dwarf2/index-cache.c
@@ -23,6 +23,7 @@
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "command.h"
+#include "dwarf2/index-common.h"
#include "gdbsupport/scoped_mmap.h"
#include "gdbsupport/pathstuff.h"
#include "dwarf2/index-write.h"
diff --git a/gdb/dwarf2/mapped-index.h b/gdb/dwarf2/mapped-index.h
index 199ee57..8bc81b4 100644
--- a/gdb/dwarf2/mapped-index.h
+++ b/gdb/dwarf2/mapped-index.h
@@ -20,8 +20,6 @@
#ifndef GDB_DWARF2_MAPPED_INDEX_H
#define GDB_DWARF2_MAPPED_INDEX_H
-#include "dwarf2/index-common.h"
-#include "language.h"
#include "quick-symbol.h"
class cooked_index;
diff --git a/gdb/dwarf2/read-gdb-index.c b/gdb/dwarf2/read-gdb-index.c
index a9ae741..6719fbf 100644
--- a/gdb/dwarf2/read-gdb-index.c
+++ b/gdb/dwarf2/read-gdb-index.c
@@ -22,6 +22,7 @@
#include "cli/cli-cmds.h"
#include "cli/cli-style.h"
#include "complaints.h"
+#include "dwarf2/index-common.h"
#include "dwz.h"
#include "event-top.h"
#include "gdb/gdb-index.h"