From 652099717dbb767c9d3eaed4c533486dd99d5e5b Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 20 Nov 2021 21:54:11 -0500 Subject: gdb: remove SYMTAB_OBJFILE macro Remove the macro, replace with an equivalent method. Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb --- gdb/symmisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/symmisc.c') 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; -- cgit v1.1