Browse Source

The printf modifier for a double is just %f

pull/317/merge
Rasmus Lerdorf 13 years ago
parent
commit
527ac404a1
  1. 4
      .gdbinit

4
.gdbinit

@ -106,7 +106,7 @@ define dump_bt
printf "%ld", $zvalue->value.lval
end
if $type == 2
printf "%lf", $zvalue->value.dval
printf "%f", $zvalue->value.dval
end
if $type == 3
if $zvalue->value.lval
@ -185,7 +185,7 @@ define ____printzv_contents
printf "long: %ld", $zvalue->value.lval
end
if $type == 2
printf "double: %lf", $zvalue->value.dval
printf "double: %f", $zvalue->value.dval
end
if $type == 3
printf "bool: "

Loading…
Cancel
Save