X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.gdbinit;h=613d134f4b3b613edb665d73f4affeb51fea8c4c;hb=ecc347af166d4c87ae72bc17e37e5a1414293469;hp=5a1e9b73b13d3656555ed59f995b80cbdf18c092;hpb=6f255c8fd6f013308b64831363d9e045d46045c0;p=nethome.git diff --git a/.gdbinit b/.gdbinit index 5a1e9b7..613d134 100644 --- a/.gdbinit +++ b/.gdbinit @@ -1,10 +1,12 @@ +set break pending on +set style enabled off # See .bashrc: export GDBHISTFILE="$HOME/.gdb_history" # Should also work (untested): # set history filename ~/.gdb_history set history save on # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106814 set complaints 0 -set record insn-number-max 10000000 +set record full insn-number-max 10000000 define javadump call _Jv_DeepDebug($arg0) end @@ -77,3 +79,12 @@ define nip nexti x/i $pc end + +define mycommand + set $i = 0 + set $foo1=$arg1 + while $i < $argc + eval "print $foo%d", $i + set $i = $i + 1 + end +end