diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-10-31 23:35:52 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-10-31 23:35:52 +0000 |
commit | 0a3e99f6bc93cbf086d2204e5d1cfcfbacd83a57 (patch) | |
tree | abe0f38c3e3bbdeffd4bce45a618c44b3779b00b /gdb/vax-tdep.c | |
parent | e43168cce0c6cb84f4449e7afba20de4223cbae8 (diff) | |
download | gdb-0a3e99f6bc93cbf086d2204e5d1cfcfbacd83a57.zip gdb-0a3e99f6bc93cbf086d2204e5d1cfcfbacd83a57.tar.gz gdb-0a3e99f6bc93cbf086d2204e5d1cfcfbacd83a57.tar.bz2 |
* doublest.c (floatformat_normalize_byteorder): Handle
floatformat_vax.
(convert_doublest_to_floatformat): Use
floatformat_normalize_byteorder to swap bytes if necessary.
* vax-tdep.c: Include floatformat.h.
(vax_gdbarch_init): Set float_format, double_format,
long_double_format and long_double_bit.
* Makefile.in (vax-tdep.o): Update dependencies.
Diffstat (limited to 'gdb/vax-tdep.c')
-rw-r--r-- | gdb/vax-tdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index 58d8296..625918c 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -23,6 +23,7 @@ #include "defs.h" #include "arch-utils.h" #include "dis-asm.h" +#include "floatformat.h" #include "frame.h" #include "frame-base.h" #include "frame-unwind.h" @@ -476,6 +477,11 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) gdbarch = gdbarch_alloc (&info, NULL); + set_gdbarch_float_format (gdbarch, &floatformat_vax_f); + set_gdbarch_double_format (gdbarch, &floatformat_vax_d); + set_gdbarch_long_double_format (gdbarch, &floatformat_vax_d); + set_gdbarch_long_double_bit(gdbarch, 64); + /* Register info */ set_gdbarch_num_regs (gdbarch, VAX_NUM_REGS); set_gdbarch_register_name (gdbarch, vax_register_name); |