projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a36a812
)
* .gdbinit: Add list-objfiles command.
author
Jim Kingdon
<jkingdon@engr.sgi.com>
Wed, 21 Sep 1994 03:23:28 +0000
(
03:23
+0000)
committer
Jim Kingdon
<jkingdon@engr.sgi.com>
Wed, 21 Sep 1994 03:23:28 +0000
(
03:23
+0000)
gdb/.gdbinit
patch
|
blob
|
history
diff --git
a/gdb/.gdbinit
b/gdb/.gdbinit
index f60802e50093650d65d2377048f0eca9121fc528..2140f7f384e7c5f5b4ebb9cb56d58d2680e2d352 100644
(file)
--- 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