This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/1891: info all-registers or info reg register don't show double values of left (64-bit) floating registers


>Number:         1891
>Category:       gdb
>Synopsis:       info all-registers or info reg register don't show double values of left (64-bit) floating registers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 06 23:58:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dave Anglin
>Release:        unknown-1.0
>Organization:
>Environment:
hppa1.1-hp-hpux10.20

Probably, also hpux11.
>Description:
# gdb pow.xg
GNU gdb 6.3.50.20050226-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa1.1-hp-hpux10.20"...

0x0000fd74 <main+60>:   ldo -78(sp),r25
0x0000fd78 <main+64>:   fstd fr22,8(,r19)
0x0000fd7c <main+68>:   b,l 0xfb88 <_ZSt3powIdESt7complexIT_ERKS2_RKS1_>,rp
0x0000fd80 <main+72>:   fstd fr23,-8(,r3)
0x0000fd84 <main+76>:   fldd 0(,r4),fr22
0x0000fd88 <main+80>:   fcmp,dbl,!= fr22,fr0,
0x0000fd8c <main+84>:   ftest ,
(gdb) break *0x0000fd88
Breakpoint 1 at 0xfd88
(gdb) r
Starting program: /xxx/gnu/gcc-3.3/objdir/hppa1.1-hp-hpux10.20/libstdc++-v3/testsuite/pow.xg

Breakpoint 1, 0x0000fd88 in main ()
(gdb) info reg fr22
fr22           nan(0x740000)    (raw 0x7ff40000)

On gdb 5.0, we get

Breakpoint 1, 0xfd88 in main ()
(gdb) info reg fr22
fr22    (single precision)     NaN(0x740000)
fr22    (double precision)     NaN(0x4000000000000)
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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