From 449abd890017f4db4e9842a492e5be44610ecfaa Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Sat, 13 Apr 1996 21:33:59 +0000 Subject: * remote-nindy.c (nindy_open): Acquire more target state so that user can attach to a previously running program. * (nindy_fetch_registers nindy_store_registers): Get rid of fp conversion code. That's all handled in {extract store}_floating now. * utils.c (floatformat_to_double): Don't bias exponent when handling zero's, denorms or NaNs. * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and FLOATFORMAT_TO/FROM_DOUBLEST macros. * config/i960/tm-nindy960.h: Undefine REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and REGISTER_CONVERTIBLE. These are no longer necessary now that all the magic happens in extract/store_floating. --- gdb/config/i960/tm-i960.h | 8 ++++---- gdb/config/i960/tm-nindy960.h | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'gdb/config') diff --git a/gdb/config/i960/tm-i960.h b/gdb/config/i960/tm-i960.h index 95a4143..5c57424 100644 --- a/gdb/config/i960/tm-i960.h +++ b/gdb/config/i960/tm-i960.h @@ -170,8 +170,8 @@ extern CORE_ADDR saved_pc_after_call (); #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \ { \ - double val; \ - floatformat_to_double (&floatformat_i960_ext, (FROM), &val); \ + DOUBLEST val; \ + FLOATFORMAT_TO_DOUBLEST (&floatformat_i960_ext, (FROM), &val); \ store_floating ((TO), TYPE_LENGTH (TYPE), val); \ } @@ -180,8 +180,8 @@ extern CORE_ADDR saved_pc_after_call (); #define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ { \ - double val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - floatformat_from_double (&floatformat_i960_ext, &val, (TO)); \ + DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ + FLOATFORMAT_FROM_DOUBLEST (&floatformat_i960_ext, &val, (TO)); \ } /* Return the GDB type object for the "standard" data type diff --git a/gdb/config/i960/tm-nindy960.h b/gdb/config/i960/tm-nindy960.h index 0f9b484..094781f 100644 --- a/gdb/config/i960/tm-nindy960.h +++ b/gdb/config/i960/tm-nindy960.h @@ -95,3 +95,7 @@ nindy_frame_chain_valid(); /* See nindy-tdep.c */ */ #define DECR_PC_AFTER_BREAK 0 + +#undef REGISTER_CONVERT_TO_VIRTUAL +#undef REGISTER_CONVERT_TO_RAW +#undef REGISTER_CONVERTIBLE -- cgit v1.1