Ich kann nicht verwalten GDB drucken correcly einige C-Stil hexadezimal Gleitkommazahlen zu machen, finden Sie unter:Kann GDB C-artige hexadezimale Gleitkommazahlen korrekt analysieren?
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) p 0xa.0p-4
$1 = 6
Hier $1
0.625
sein sollte, aber scheint meine GDB 0xa.0p
als Dezimalzahl 10
und macht eine nachträgliche Zugabe zu sehen, mit -4
. Was stimmt nicht mit dem, was ich GDB zum Ausdrucken? Ich konnte keine relevante Dokumentation darüber finden, wie GDB hexadezimale Gleitkommazahlen behandelt.
@hdl Ich kann keinen offenen Fehler auf gdb Bugzilla finden https://www.sourceware.org/bugzilla möchten Sie einen öffnen? Ansonsten kann ich es selbst ablegen. – ouah
Für die "Ungültige Nummer" Fehler, siehe http://StackOverflow.com/Questions/24865689/change-decimal-separator-in-Gdb#comment38649027_24865689 – hdl
@HDL guten Punkt, ich entferne diesen Punkt meiner Antwort, um unnötiges Rauschen zu vermeiden – ouah