From bad0fe066cfcbc66a1f2c8de3c59b917d6922653 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 21 Sep 1994 03:23:28 +0000 Subject: * .gdbinit: Add list-objfiles command. --- gdb/.gdbinit | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/.gdbinit') 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 -- cgit v1.1