Anlıyorum, GDB baskı correcly bazı C tarzı onaltılık kayan nokta sayıları yapmak için yönetemez:GDB, C stili onaltılık kayan nokta sayılarını düzeltebilir mi?
İşte$1
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
0.625
olmalı ama benim GDB ondalık 10
olarak 0xa.0p
görmek gibi görünüyor ve bir sonraki ek yapar -4
. GDB'nin yazdırmasını istediğim şeyin nesi var? GDB'nin onaltılık şamandıraları nasıl işleyeceğiyle ilgili hiçbir belge bulamadım.
@hdl Gdb Bugzilla'da açık bir hata bulamıyorum https://www.sourceware.org/bugzilla birini açmak ister misiniz? Aksi takdirde kendim yazabilirim. – ouah
'Geçersiz numara' hatası için bkz. Http://stackoverflow.com/questions/24865689/change-decimal-separator-in-gdb#comment38649027_24865689 – hdl
@hdl iyi nokta, gereksiz seslerden kaçınmak için cevabımın bu noktasını kaldırırım – ouah