From: Jim Kingdon Date: Wed, 21 Sep 1994 03:23:28 +0000 (+0000) Subject: * .gdbinit: Add list-objfiles command. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bad0fe066cfcbc66a1f2c8de3c59b917d6922653;p=binutils-gdb.git * .gdbinit: Add list-objfiles command. --- diff --git a/gdb/.gdbinit b/gdb/.gdbinit index f60802e5009..2140f7f384e 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