This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/16242] print format for hex float


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]