gdb: remove SYMTAB_PSPACE macro

Remove the macro, replace with an equivalent method.

Change-Id: Icccc20e7e8ae03ac4dac1c7514c25a12a9a0ac69
This commit is contained in:
Simon Marchi 2021-11-20 22:23:01 -05:00
parent 652099717d
commit cdc22ffbf5
5 changed files with 32 additions and 23 deletions

View file

@ -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