diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 22:23:01 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | cdc22ffbf5c76b9fb907bdec700c19d350abb226 (patch) | |
tree | aa9d730ff474371ca3038ce509d7ee89ee24ab6a /gdb/symtab.h | |
parent | 652099717dbb767c9d3eaed4c533486dd99d5e5b (diff) | |
download | gdb-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.h | 3 |
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 |