aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/i960
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-04-17 00:48:09 +0000
committerStu Grossman <grossman@cygnus>1996-04-17 00:48:09 +0000
commit8eff3c7fe69220db3075e551f6cef34271f40d4c (patch)
tree7d9a8da9c45f20f7d6a919b7452cfccc43e7ca4c /gdb/config/i960
parent603fdf16796dd46c9b9e1ba605a3bc79fed7f552 (diff)
downloadgdb-8eff3c7fe69220db3075e551f6cef34271f40d4c.zip
gdb-8eff3c7fe69220db3075e551f6cef34271f40d4c.tar.gz
gdb-8eff3c7fe69220db3075e551f6cef34271f40d4c.tar.bz2
* corelow.c (add_to_thread_list): Make sure reg_sect is non-null
before de-referencing it. Prevents deref of NULL pointer if core file lacks .reg section. * defs.h: Rename floatformat_{to from}_long_double to floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO FROM}... macros. * findvar.c (extract_floating store_floating): Change all refs to FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest. * utils.c: Change floatformat_{to from}_long_double to floatformat_{to from}_doublest cuz the new routines will use whatever size (double or long double) is appropriate. * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to floatformat... routine calls.
Diffstat (limited to 'gdb/config/i960')
-rw-r--r--gdb/config/i960/tm-i960.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/config/i960/tm-i960.h b/gdb/config/i960/tm-i960.h
index 5c57424..c4d9fe8 100644
--- a/gdb/config/i960/tm-i960.h
+++ b/gdb/config/i960/tm-i960.h
@@ -171,7 +171,7 @@ extern CORE_ADDR saved_pc_after_call ();
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
{ \
DOUBLEST val; \
- FLOATFORMAT_TO_DOUBLEST (&floatformat_i960_ext, (FROM), &val); \
+ floatformat_to_doublest (&floatformat_i960_ext, (FROM), &val); \
store_floating ((TO), TYPE_LENGTH (TYPE), val); \
}
@@ -181,7 +181,7 @@ extern CORE_ADDR saved_pc_after_call ();
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
{ \
DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \
- FLOATFORMAT_FROM_DOUBLEST (&floatformat_i960_ext, &val, (TO)); \
+ floatformat_from_doublest (&floatformat_i960_ext, &val, (TO)); \
}
/* Return the GDB type object for the "standard" data type