diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-19 21:33:50 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-12 15:50:53 -0700 |
commit | deeafabb678e59d8585be6d765c7fbd0e7060b6c (patch) | |
tree | 8fd33588e29dd7740f741b547e674656f1a0d784 /gdb/objfiles.h | |
parent | 234529260a90b6ac6ed38ddac45d6ed15149e8f8 (diff) | |
download | gdb-deeafabb678e59d8585be6d765c7fbd0e7060b6c.zip gdb-deeafabb678e59d8585be6d765c7fbd0e7060b6c.tar.gz gdb-deeafabb678e59d8585be6d765c7fbd0e7060b6c.tar.bz2 |
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
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 49b4627..0656cfe 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -773,10 +773,6 @@ extern void default_iterate_over_objfiles_in_search_order uninitialized section index. */ #define SECT_OFF_BSS(objfile) (objfile)->sect_index_bss -/* Answer whether there is more than one object file loaded. */ - -#define MULTI_OBJFILE_P() (object_files && object_files->next) - /* Reset the per-BFD storage area on OBJ. */ void set_objfile_per_bfd (struct objfile *obj); |