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:
parent
234529260a
commit
deeafabb67
6 changed files with 24 additions and 6 deletions
|
@ -200,6 +200,14 @@ program_space::remove_objfile (struct objfile *objfile)
|
|||
_("remove_objfile: objfile already unlinked"));
|
||||
}
|
||||
|
||||
/* See progspace.h. */
|
||||
|
||||
bool
|
||||
program_space::multi_objfile_p () const
|
||||
{
|
||||
return objfiles_head != nullptr && objfiles_head->next != nullptr;
|
||||
}
|
||||
|
||||
/* Copies program space SRC to DEST. Copies the main executable file,
|
||||
and the main symbol file. Returns DEST. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue