From deeafabb678e59d8585be6d765c7fbd0e7060b6c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 19 Jan 2019 21:33:50 -0700 Subject: Remove MULTI_OBJFILE_P This removes the MULTI_OBJFILE_P macro in favor of a method on the program space. gdb/ChangeLog 2019-12-12 Tom Tromey * progspace.c (program_space::multi_objfile_p): New method. * printcmd.c (info_symbol_command): Update. * maint.c (maintenance_translate_address): Update. * objfiles.h (MULTI_OBJFILE_P): Remove. * progspace.h (struct program_space) : New method. Change-Id: I2779e26ea8909078d63fea8f13bce94cab73948c --- gdb/printcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 480e7f2..77cdd77 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1367,7 +1367,7 @@ info_symbol_command (const char *arg, int from_tty) gdb_assert (osect->objfile && objfile_name (osect->objfile)); obj_name = objfile_name (osect->objfile); - if (MULTI_OBJFILE_P ()) + if (current_program_space->multi_objfile_p ()) if (pc_in_unmapped_range (addr, osect)) if (section_is_overlay (osect)) printf_filtered (_("%s in load address range of " -- cgit v1.1