mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user