]> granicus.if.org Git - php/commitdiff
The printf modifier for a double is just %f
authorRasmus Lerdorf <rasmus@php.net>
Mon, 1 Apr 2013 23:27:09 +0000 (16:27 -0700)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 1 Apr 2013 23:27:09 +0000 (16:27 -0700)
.gdbinit

index e7a565dfa9cc674a1b0732ba6e70db7ca24f549b..b14b03da9fe82cfe88de854a10161c6f1643bf20 100644 (file)
--- 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: "