This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/24099] New: gdb will not correctly examine single precision floats after an "x/b" command
- From: "stseelig at mail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 16 Jan 2019 20:25:01 +0000
- Subject: [Bug cli/24099] New: gdb will not correctly examine single precision floats after an "x/b" command
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=24099
Bug ID: 24099
Summary: gdb will not correctly examine single precision floats
after an "x/b" command
Product: gdb
Version: 8.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: stseelig at mail dot com
Target Milestone: ---
gdb will not correctly examine single precision floats after an "x/b" command
below is the program (x86 assembly)
########
# floattest.s
#
# An example of using floating point numbers
.section .data
value1:
.float 12.34
value2:
.double 2353.631
.section .bss
.lcomm data, 8
.section .text
.globl _start
_start:
flds value1
fldl value2
fstl data
xorl %ebx, %ebx
movl $1, %eax
int $0x80
########
$ gdb -q ./floattest
Reading symbols from ./floattest...done.
(gdb) x/f &value1
0x804a000: 12.3400002
(gdb) x/wx &value1
0x804a000: 0x414570a4
(gdb) x/f &value1
0x804a000: 12.3400002
(gdb) x/4bx &value1
0x804a000: 0xa4 0x70 0x45 0x41
(gdb) x/f &value1
0x804a000: 6.7705045851918156e-220
(gdb) x/wx &value1
0x804a000: 0x414570a4
(gdb) x/f &value1
0x804a000: 12.3400002
(gdb) x/4bx &value1
0x804a000: 0xa4 0x70 0x45 0x41
(gdb) x/f &value1
0x804a000: 6.7705045851918156e-220
(gdb) quit
$
--
You are receiving this mail because:
You are on the CC list for the bug.