+set complaints 10
[nethome.git] / .gdbinit
index f60ba04..6aad8c4 100644 (file)
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,19 +1,20 @@
-set history filename /home/short/.gdb_history
+# See .bashrc: export GDBHISTFILE="$HOME/.gdb_history"
+# Should also work <jefyi6bzm6.fsf@sykes.suse.de> (untested):
+# set history filename ~/.gdb_history
 set history save on
+set complaints 10
 define rt
        break $arg0
        run
 #      clear $arg0
        end
 define ct
-       break $arg0
+       tbreak $arg0
        continue
-       clear $arg0
        end
 define rtl
-       break main
+       tbreak main
        run
-       clear main
        break $arg0
        continue
 #      clear $arg0
@@ -21,6 +22,7 @@ define rtl
 define pglist3
        if (*("$arg1")=='@')
                set var $arg1=struct $arg1
+               end
        set var $pglist_list=$arg0
        while ($pglist_list)
                if (!strcmp("$arg2","."))