[pushed] Two minor addrmap cleanups

Message ID 20240227213137.1805500-1-tromey@adacore.com
State New
Headers
Series [pushed] Two minor addrmap cleanups |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Tom Tromey Feb. 27, 2024, 9:31 p.m. UTC
  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(-)
  

Patch

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"