diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-11-18 21:31:26 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-11-18 21:31:26 +0000 |
commit | 1ecdcd8f58324b6b2a27e533f5507541f05acbd2 (patch) | |
tree | 28bd612c909ba713527c13302f7e89f92dede7d2 /gdb/objfiles.h | |
parent | bb672e6513cc32ea8e7e377ee058e1298ace6832 (diff) | |
download | gdb-1ecdcd8f58324b6b2a27e533f5507541f05acbd2.tar.gz |
2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
* objfiles.h: New MULTI_OBJFILE_P macro.
* printcmd.c (sym_info): Print object name.
* maint.c (maintenance_translate_address): Likewise.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index c8b5af31507..fe42f549f53 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -583,4 +583,8 @@ extern void *objfile_data (struct objfile *objfile, 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) + #endif /* !defined (OBJFILES_H) */ |