aboutsummaryrefslogtreecommitdiff
path: root/gdb/.gdbinit
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-09-21 03:23:28 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-09-21 03:23:28 +0000
commitbad0fe066cfcbc66a1f2c8de3c59b917d6922653 (patch)
tree16bb1f491b1888401a8c63f7627365f90cdd183f /gdb/.gdbinit
parenta36a812c48d42b56dddd60ccbdecc47a84e38e5f (diff)
downloadgdb-bad0fe066cfcbc66a1f2c8de3c59b917d6922653.zip
gdb-bad0fe066cfcbc66a1f2c8de3c59b917d6922653.tar.gz
gdb-bad0fe066cfcbc66a1f2c8de3c59b917d6922653.tar.bz2
* .gdbinit: Add list-objfiles command.
Diffstat (limited to 'gdb/.gdbinit')
-rw-r--r--gdb/.gdbinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/.gdbinit b/gdb/.gdbinit
index f60802e..2140f7f 100644
--- a/gdb/.gdbinit
+++ b/gdb/.gdbinit
@@ -14,3 +14,13 @@ dir ../mmalloc
dir ../libiberty
dir ../bfd
set prompt (top-gdb)
+
+define list-objfiles
+set $obj = object_files
+printf "objfile bfd msyms name\n"
+while $obj != 0
+printf "0x%-8x 0x%-8x %6d %s\n", $obj, $obj->obfd, \
+ $obj->minimal_symbol_count, $obj->name
+set var $obj = $obj->next
+end
+end