This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [eliz@is.elta.co.il: GDB: fine print in 387 info]
- To: Stan Shebs <shebs@cygnus.com>
- Subject: Re: [eliz@is.elta.co.il: GDB: fine print in 387 info]
- From: Eli Zaretskii <eliz@delorie.com>
- Date: Sun, 11 Jul 1999 03:56:30 -0400 (EDT)
- CC: gdb-patches@sourceware.cygnus.com
> Date: Thu, 8 Jul 1999 13:07:19 -0700
> From: Stan Shebs <shebs@cygnus.com>
> CC: gdb-patches@sourceware.cygnus.com
> Content-Type: text
> Content-Length: 654
>
>
> Date: Thu, 8 Jul 1999 02:44:11 -0400 (EDT)
> From: Eli Zaretskii <eliz@delorie.com>
>
> Okay, I will try to come up with a suggestion, based on Bill
> Metzenthen's code with minimal changes, and post it for review
> and discussion.
>
> Cool.
My suggestions are below:
It seems that Bill's design was intended to make "info float" and
"info all-registers" display the information in the same format. That
is why "info float" uses the same FP registers names as "info
all-registers".
But this means that "info float" becomes redundant. I prefer another
approach, where "info all-registers" displays the registers with the
names they should be referred to if the user wants e.g. to change
their values, while "info float" presents an alternative view of the
FPU status. Therefore, my suggestion below does not necessarily
follow the FP registers names.
Here's the format that I suggest to adopt for "info float":
control: 0x127f 53 bit; NEAR; mask INVAL DENOR DIVZ OVERF UNDER LOS
status: 0x2802 cond code 0000; top 5; excep DENOR
tag: 0x07ff
fpinstr: selector 0x0023 offset 0x08048755 opcode 0xdec2 "faddp st(0),st(2)"
operand: selector 0x002b offset 0x0804a7f8
regno tag msb lsb value type stk
7: Zero 00000000000000000000 0 Zero st2
6: Valid 3fff8000000000000000 1 Normal st1
top=> 5: Valid 3c00fffffffffffff000 2.225073858507200889025e-308 Normal st0
4: Empty 00000000000000000000 0 Zero st7
3: Empty 80000008000000000000 -8.208259626738509536774e-4936 Denorm st6
2: Empty 00000000000000000002 7.290399063764949205057e-4951 Denorm st5
1: Empty 00000008000820000000 8.208386831842321278393e-4936 Denorm st4
0: Empty 00000200000000000000 5.253286161112646103535e-4934 Denorm st3