This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/16242] print format for hex float
- From: "b7.10110111 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 29 Jul 2017 11:24:41 +0000
- Subject: [Bug cli/16242] print format for hex float
- Auto-submitted: auto-generated
- References: <bug-16242-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16242
--- Comment #2 from Ruslan <b7.10110111 at gmail dot com> ---
There is /z format, which for floating-point values appears to print raw data.
The only problem is that this isn't documented. Instead, `help x` says "x(hex)"
and "z(hex, zero padded on the left)", without mentioning that the former
converts to integer while the latter prints true raw value.
I guess the fix for this would be to make the documentation correct and to add
some tests checking that the documentation matches actual behavior.
--
You are receiving this mail because:
You are on the CC list for the bug.