aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/i960
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-04-13 21:33:59 +0000
committerStu Grossman <grossman@cygnus>1996-04-13 21:33:59 +0000
commit449abd890017f4db4e9842a492e5be44610ecfaa (patch)
tree493484d6e0d941a2a50f343575ca4591f893b05c /gdb/config/i960
parent9898b3b7c77ed601f60977ea2a7715cfcf17f4ec (diff)
downloadgdb-449abd890017f4db4e9842a492e5be44610ecfaa.zip
gdb-449abd890017f4db4e9842a492e5be44610ecfaa.tar.gz
gdb-449abd890017f4db4e9842a492e5be44610ecfaa.tar.bz2
* 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.
Diffstat (limited to 'gdb/config/i960')
-rw-r--r--gdb/config/i960/tm-i960.h8
-rw-r--r--gdb/config/i960/tm-nindy960.h4
2 files changed, 8 insertions, 4 deletions
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