diff options
Diffstat (limited to '.gdbinit')
-rw-r--r-- | .gdbinit | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -5,7 +5,7 @@ end document set_ts set the ts resource, it is impossible for gdb to call ts_resource_ex while no process is running, - but we could get the resource from the argument + but we could get the resource from the argument of frame info. end @@ -153,7 +153,7 @@ end define printzv set $ind = 1 - ____printzv $arg0 0 + ____printzv $arg0 0 end document printzv @@ -190,7 +190,7 @@ define ____printzv_contents if $type == 6 printf "string: %s", $zvalue->value.str->val end - if $type == 7 + if $type == 7 printf "array: " if ! $arg1 set $ind = $ind + 1 @@ -287,7 +287,7 @@ define ____printzv if $arg1 ____printzv_contents $zcontents $arg1 else - ____printzv_contents $zcontents 0 + ____printzv_contents $zcontents 0 end end @@ -340,7 +340,7 @@ define ____print_ht set $n = $n - 1 end printf "[%d] ", $i - if $p->key + if $p->key printf "%s => ", $p->key->val else printf "%d => ", $p->h @@ -389,7 +389,7 @@ document print_htptr end define print_htstr - set $ind = 0 + set $ind = 0 ____print_ht $arg0 2 end @@ -543,10 +543,10 @@ define printzn if $znode->op_type == 1 set $optype = "IS_CONST" end - if $znode->op_type == 2 + if $znode->op_type == 2 set $optype = "IS_TMP_VAR" end - if $znode->op_type == 4 + if $znode->op_type == 4 set $optype = "IS_VAR" end if $znode->op_type == 8 @@ -576,11 +576,11 @@ end document printzn print type and content of znode. - usage: printzn &opline->op1 + usage: printzn &opline->op1 end define printzops - printf "op1 => " + printf "op1 => " printzn &execute_data->opline.op1 printf "op2 => " printzn &execute_data->opline.op2 |