public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed] Two minor addrmap cleanups
@ 2024-02-27 21:31 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-02-27 21:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

While working on a different patch, I found a couple of simple addrmap
cleanups.

In one case, a forward declaration is no longer needed, as the header
now includes addrmap.h.

In the other, an include of addrmap.h is no longer needed.

Tested by rebuilding.
---
 gdb/buildsym.h | 1 -
 gdb/psymtab.c  | 1 -
 2 files changed, 2 deletions(-)

diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 79ece794559..c1eed247d25 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -25,7 +25,6 @@
 
 struct objfile;
 struct symbol;
-struct addrmap;
 struct compunit_symtab;
 enum language;
 
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 334a9417055..a831e5eec40 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -24,7 +24,6 @@
 #include "block.h"
 #include "filenames.h"
 #include "source.h"
-#include "addrmap.h"
 #include "gdbtypes.h"
 #include "ui-out.h"
 #include "command.h"
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-27 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 21:31 [pushed] Two minor addrmap cleanups Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).