aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-04-23 15:22:44 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-04-25 12:59:02 -0400
commit5b9707eb872ad4cb50c98d396d16f110070a44ca (patch)
tree6a7cb1a70adadf11c1a5e6a52243701970a805c0 /gdb/dwarf2
parent1863e6a54b31a5cda9b34537b40708232a90416c (diff)
downloadgdb-5b9707eb872ad4cb50c98d396d16f110070a44ca.zip
gdb-5b9707eb872ad4cb50c98d396d16f110070a44ca.tar.gz
gdb-5b9707eb872ad4cb50c98d396d16f110070a44ca.tar.bz2
gdb: remove gdbcmd.h
Most files including gdbcmd.h currently rely on it to access things actually declared in cli/cli-cmds.h (setlist, showlist, etc). To make things easy, replace all includes of gdbcmd.h with includes of cli/cli-cmds.h. This might lead to some unused includes of cli/cli-cmds.h, but it's harmless, and much faster than going through the 170 or so files by hand. Change-Id: I11f884d4d616c12c05f395c98bbc2892950fb00f Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/index-write.c2
-rw-r--r--gdb/dwarf2/loc.c2
-rw-r--r--gdb/dwarf2/read.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2/index-write.c b/gdb/dwarf2/index-write.c
index 3f81228..aeb688b 100644
--- a/gdb/dwarf2/index-write.c
+++ b/gdb/dwarf2/index-write.c
@@ -34,7 +34,7 @@
#include "dwarf2/read.h"
#include "dwarf2/dwz.h"
#include "gdb/gdb-index.h"
-#include "gdbcmd.h"
+#include "cli/cli-cmds.h"
#include "objfiles.h"
#include "ada-lang.h"
#include "dwarf2/tag.h"
diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
index 23c57bd..9db5fc1 100644
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -31,7 +31,7 @@
#include "regcache.h"
#include "objfiles.h"
#include "block.h"
-#include "gdbcmd.h"
+#include "cli/cli-cmds.h"
#include "complaints.h"
#include "dwarf2.h"
#include "dwarf2/expr.h"
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 501d6c0..7eacafc 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -62,7 +62,7 @@
#include "cp-support.h"
#include "hashtab.h"
#include "command.h"
-#include "gdbcmd.h"
+#include "cli/cli-cmds.h"
#include "block.h"
#include "addrmap.h"
#include "typeprint.h"