diff options
-rw-r--r-- | gdb/.gdbinit | 10 |
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 |