mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 13:57:12 +08:00
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 <tom@tromey.com> * 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) <multi_objfile_p>: New method. Change-Id: I2779e26ea8909078d63fea8f13bce94cab73948c
This commit is contained in:
@ -589,7 +589,7 @@ maintenance_translate_address (const char *arg, int from_tty)
|
||||
gdb_assert (sect->objfile && objfile_name (sect->objfile));
|
||||
obj_name = objfile_name (sect->objfile);
|
||||
|
||||
if (MULTI_OBJFILE_P ())
|
||||
if (current_program_space->multi_objfile_p ())
|
||||
printf_filtered (_("%s + %s in section %s of %s\n"),
|
||||
symbol_name, symbol_offset,
|
||||
section_name, obj_name);
|
||||
|
Reference in New Issue
Block a user