aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2008-11-18 21:31:27 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2008-11-18 21:31:27 +0000
commitc14c28ba117dee9fd0bf17fc3437e808221a7829 (patch)
treef325e191374bc352f84e4194fe2dbfc521e7133d /gdb/objfiles.h
parent00a0b122cf3b524243c3cea05101bacd5a1595ba (diff)
downloadgdb-c14c28ba117dee9fd0bf17fc3437e808221a7829.zip
gdb-c14c28ba117dee9fd0bf17fc3437e808221a7829.tar.gz
gdb-c14c28ba117dee9fd0bf17fc3437e808221a7829.tar.bz2
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index c8b5af3..fe42f54 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) */