X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.gdbinit;h=6aad8c420705e7105ae4a7acb1c2aeaf19e10e5e;hb=d4022af99a8b5d202895529bb541a9862eea515f;hp=f60ba04d6f9e7ff8fd5ecdc2a9abb7c665010b8f;hpb=676d32680ce953572d713c9d4651b24fdffdcd85;p=nethome.git diff --git a/.gdbinit b/.gdbinit index f60ba04..6aad8c4 100644 --- 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 (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","."))