aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-27 22:01:10 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit7b3ecc7555438f05dda657d0ed6a43ee71a3901d (patch)
tree851e01af89a5dda9ab1ea9c05b4059eda7497907 /gdb/symmisc.c
parent6c9c307c67043b55a209af402246404d89f992c9 (diff)
downloadgdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.zip
gdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.tar.gz
gdb-7b3ecc7555438f05dda657d0ed6a43ee71a3901d.tar.bz2
gdb: remove SYMBOL_OBJFILE_OWNED macro
Add a getter and a setter for whether a symbol is objfile owned. Remove the corresponding macro and adjust all callers. Change-Id: Ib7ef3718d65553ae924ca04c3fd478b0f4f3147c
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 9bba067..cb16b5c 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -502,7 +502,7 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol,
{
struct obj_section *section;
- if (SYMBOL_OBJFILE_OWNED (symbol))
+ if (symbol->is_objfile_owned ())
section = symbol->obj_section (symbol_objfile (symbol));
else
section = NULL;