This is the mail archive of the gdb@sourceware.cygnus.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]

Re: Proposal for `info float' layout



> Keep in mind that GDB is a debugger.  We should try to create the
> layout that is most useful for finding bugs.  Based on this principle
> I made some decisions:

FWIW, I agree with Mark's principles.

One additional thought: could it be that it's better to put the
floating-point representation of the registers to the left of the hex
representation?  In other words, would the following be better?

  R7: Valid   1.0000000000000000000  0x00000000000000000000
=>R6: Special +QNaN                  0x00000000000000000000
  R5: Empty                          0x00000000000000000000
  R4: Zero    -0                     0x00000000000000000000
  R3: Special 0.0024438394034300000  0x00000000000000000000 Denormal
  R2: Empty                          0x00000000000000000000 
  R1: Empty                          0x00000000000000000000
  R0: Empty                          0x00000000000000000000

Since the FP representation is by far the most important one, while
the hex one should be used only as auxiliary info in some special
cases, perhaps this is better?

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