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

Re: [commit] Add BE/LE floating-point type & format tables


You'd better do that because right now I don't see where this is
heading.

My original post gave one example, here's another:


static struct type *
mips_float_register_type (void)
{
  if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
    return builtin_type_ieee_single_big;
  else
    return builtin_type_ieee_single_little;
}

Is all over the place. This:

builtin_type_ieee_single[gdbarch_byte_order (gdbarch)]

is shorter and correct.

Anyway, could we rename floatformat_ia64_quad to
floatformat_ieee_quad.  There are quite a few systems out there that
use or will be using the same format, and I believe i will be in a new
revision of the official IEEE standard for it.


local to gdb?


Andrew


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