summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2013-04-01 16:27:09 -0700
committerRasmus Lerdorf <rasmus@php.net>2013-04-01 16:27:09 -0700
commit527ac404a124a574321bdcc209fd4f30d05d7144 (patch)
treeef2a9a14ae8b21472f1c0dc532f1bcec6ad232c9 /.gdbinit
parent7b07d05917d9ff40a70bd6ecffca840e2458ea86 (diff)
downloadphp-git-527ac404a124a574321bdcc209fd4f30d05d7144.tar.gz
The printf modifier for a double is just %f
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gdbinit b/.gdbinit
index e7a565dfa9..b14b03da9f 100644
--- a/.gdbinit
+++ b/.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: "