aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-20 21:54:11 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit652099717dbb767c9d3eaed4c533486dd99d5e5b (patch)
tree1165879a9bb9e6d433559addb0e492e602d7c4c5 /gdb/symmisc.c
parent012cfab919e7da355b2ac7f86674211cbce26041 (diff)
downloadgdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.zip
gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.gz
gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.bz2
gdb: remove SYMTAB_OBJFILE macro
Remove the macro, replace with an equivalent method. Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 3f5f840..62b5840 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -131,7 +131,7 @@ dump_objfile (struct objfile *objfile)
printf_filtered ("%s at %s",
symtab_to_filename_for_display (symtab),
host_address_to_string (symtab));
- if (SYMTAB_OBJFILE (symtab) != objfile)
+ if (symtab->objfile () != objfile)
printf_filtered (", NOT ON CHAIN!");
printf_filtered ("\n");
}
@@ -234,7 +234,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile)
static void
dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile)
{
- struct objfile *objfile = SYMTAB_OBJFILE (symtab);
+ struct objfile *objfile = symtab->objfile ();
struct gdbarch *gdbarch = objfile->arch ();
int i;
struct mdict_iterator miter;