public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/25983] New: Hex float display of floating-point values
@ 2020-05-13 9:51 ubizjak at gmail dot com
2020-06-06 14:55 ` [Bug cli/25983] " tromey at sourceware dot org
2020-06-06 14:58 ` tromey at sourceware dot org
0 siblings, 2 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2020-05-13 9:51 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25983
Bug ID: 25983
Summary: Hex float display of floating-point values
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: tui
Assignee: unassigned at sourceware dot org
Reporter: ubizjak at gmail dot com
Target Milestone: ---
(gdb) p $xmm0
$2 = {v4_float = {-2.5, 2.5, 0, 0}, v2_double = {8.0000057257711887, 0},
v16_int8 = {0, 0, 32, -64, 0, 0, 32, 64, 0, 0, 0, 0, 0, 0, 0, 0}, v8_int16 =
{0, -16352, 0, 16416, 0, 0, 0, 0}, v4_int32 = {-1071644672, 1075838976, 0, 0},
v2_int64 = {4620693220905451520, 0}, uint128 = 4620693220905451520}
(gdb) p/x $xmm0
$3 = {v4_float = {0xfffffffe, 0x2, 0x0, 0x0}, v2_double = {0x8, 0x0}, v16_int8
= {0x0, 0x0, 0x20, 0xc0, 0x0, 0x0, 0x20, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0}, v8_int16 = {0x0, 0xc020, 0x0, 0x4020, 0x0, 0x0, 0x0, 0x0}, v4_int32
= {0xc0200000, 0x40200000, 0x0, 0x0}, v2_int64 = {0x40200000c0200000, 0x0},
uint128 = 0x40200000c0200000}
It would be nice to print floats in hex notation [1,2], the current display of
v4_float with /x is less than useful, it displays integer part in hex.
(gdb) i r xmm0
exposes the same inconsistency.
[1] https://www.exploringbinary.com/hexadecimal-floating-point-constants/
[2] https://gcc.gnu.org/onlinedocs/gcc/Hex-Floats.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug cli/25983] Hex float display of floating-point values
2020-05-13 9:51 [Bug tui/25983] New: Hex float display of floating-point values ubizjak at gmail dot com
@ 2020-06-06 14:55 ` tromey at sourceware dot org
2020-06-06 14:58 ` tromey at sourceware dot org
1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2020-06-06 14:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25983
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tui |cli
CC| |tromey at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug cli/25983] Hex float display of floating-point values
2020-05-13 9:51 [Bug tui/25983] New: Hex float display of floating-point values ubizjak at gmail dot com
2020-06-06 14:55 ` [Bug cli/25983] " tromey at sourceware dot org
@ 2020-06-06 14:58 ` tromey at sourceware dot org
1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2020-06-06 14:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25983
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Dup.
*** This bug has been marked as a duplicate of bug 16242 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-06 14:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 9:51 [Bug tui/25983] New: Hex float display of floating-point values ubizjak at gmail dot com
2020-06-06 14:55 ` [Bug cli/25983] " tromey at sourceware dot org
2020-06-06 14:58 ` tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).