* 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.
This commit is contained in:
Mark Kettenis
2005-10-31 23:35:52 +00:00
parent e43168cce0
commit 0a3e99f6bc
4 changed files with 62 additions and 41 deletions

View File

@@ -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);