aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
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.c
parent652099717dbb767c9d3eaed4c533486dd99d5e5b (diff)
downloadbinutils-cdc22ffbf5c76b9fb907bdec700c19d350abb226.zip
binutils-cdc22ffbf5c76b9fb907bdec700c19d350abb226.tar.gz
binutils-cdc22ffbf5c76b9fb907bdec700c19d350abb226.tar.bz2
gdb: remove SYMTAB_PSPACE macro
Remove the macro, replace with an equivalent method. Change-Id: Icccc20e7e8ae03ac4dac1c7514c25a12a9a0ac69
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 671e22c..b12c3af 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -331,6 +331,14 @@ search_domain_name (enum search_domain e)
/* See symtab.h. */
+program_space *
+symtab::pspace () const
+{
+ return this->objfile ()->pspace;
+}
+
+/* See symtab.h. */
+
call_site *
compunit_symtab::find_call_site (CORE_ADDR pc) const
{