aboutsummaryrefslogtreecommitdiff
path: root/gdb/.gdbinit
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-10-13 20:36:04 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-10-13 20:36:04 +0000
commitf3601320ccda2569c08afd2b0840f236bff9a184 (patch)
tree124ddb45da82f7eca5b55caee02ff542c1803d3f /gdb/.gdbinit
parent82735983dfe1571a89b740e459a09088e8a2c9d8 (diff)
downloadgdb-f3601320ccda2569c08afd2b0840f236bff9a184.zip
gdb-f3601320ccda2569c08afd2b0840f236bff9a184.tar.gz
gdb-f3601320ccda2569c08afd2b0840f236bff9a184.tar.bz2
* .gdbinit: Restore `end'; it was not excess. Reindent
list-objfiles to make this clear. Comment out all of list-objfiles because old gdb's choke on it.
Diffstat (limited to 'gdb/.gdbinit')
-rw-r--r--gdb/.gdbinit19
1 files changed, 11 insertions, 8 deletions
diff --git a/gdb/.gdbinit b/gdb/.gdbinit
index f891689..97cb380 100644
--- a/gdb/.gdbinit
+++ b/gdb/.gdbinit
@@ -15,11 +15,14 @@ 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
+# This only works with recent (post-4.13) GDB's, but there is no way to
+# tell what version we are. So leave it commented out for now.
+#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