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:
Tom Tromey
2019-01-19 21:33:50 -07:00
parent 234529260a
commit deeafabb67
6 changed files with 24 additions and 6 deletions

@ -173,6 +173,11 @@ struct program_space
/* Remove OBJFILE from the list of objfiles. */
void remove_objfile (struct objfile *objfile);
/* Return true if there is more than one object file loaded; false
otherwise. */
bool multi_objfile_p () const;
/* Pointer to next in linked list. */
struct program_space *next = NULL;