aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-20 22:23:01 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commitcdc22ffbf5c76b9fb907bdec700c19d350abb226 (patch)
treeaa9d730ff474371ca3038ce509d7ee89ee24ab6a /gdb/symtab.h
parent652099717dbb767c9d3eaed4c533486dd99d5e5b (diff)
downloadgdb-cdc22ffbf5c76b9fb907bdec700c19d350abb226.zip
gdb-cdc22ffbf5c76b9fb907bdec700c19d350abb226.tar.gz
gdb-cdc22ffbf5c76b9fb907bdec700c19d350abb226.tar.bz2
gdb: remove SYMTAB_PSPACE macro
Remove the macro, replace with an equivalent method. Change-Id: Icccc20e7e8ae03ac4dac1c7514c25a12a9a0ac69
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 9cfbd71..5ef4bda 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1407,6 +1407,8 @@ struct symtab
struct objfile *objfile () const;
+ program_space *pspace () const;
+
/* Unordered chain of all filetabs in the compunit, with the exception
that the "main" source file is the first entry in the list. */
@@ -1439,7 +1441,6 @@ struct symtab
using symtab_range = next_range<symtab>;
-#define SYMTAB_PSPACE(symtab) ((symtab)->objfile ()->pspace)
#define SYMTAB_DIRNAME(symtab) ((symtab)->compunit ()->dirname ())
/* Compunit symtabs contain the actual "symbol table", aka blockvector, as well