aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-nindy.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-04-12 16:53:08 +0000
committerStu Grossman <grossman@cygnus>1996-04-12 16:53:08 +0000
commitc6fbd98bed167d79e49c0d4a38b5432853f11799 (patch)
tree3e8906fb8ca09716451258bd1d0281cd3189e52a /gdb/remote-nindy.c
parent9b1271617bf446b2015601820d2f996b3d16fe8a (diff)
downloadgdb-c6fbd98bed167d79e49c0d4a38b5432853f11799.zip
gdb-c6fbd98bed167d79e49c0d4a38b5432853f11799.tar.gz
gdb-c6fbd98bed167d79e49c0d4a38b5432853f11799.tar.bz2
* defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
defaults for bi-endian targets. Replace function pointers for floatformat routines with macros. No need for these to be runtime selectable. * findvar.c: Get rid of floatformat function pointers. Use macros in extract_floating and store_floating. * remote-nindy.c (nindy_fetch_registers nindy_store_registers): Use floatformat macros.
Diffstat (limited to 'gdb/remote-nindy.c')
-rw-r--r--gdb/remote-nindy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index cb223a2..29e5923 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -454,8 +454,8 @@ nindy_fetch_registers(regno)
&nindy_regs.fp_as_double[8 * (regnum - FP0_REGNUM)],
&inv);
/* dub now in host byte order */
- floatformat_from_double (&floatformat_i960_ext, &dub,
- &registers[REGISTER_BYTE (regnum)]);
+ FLOATFORMAT_FROM_DOUBLEST (&floatformat_i960_ext, &dub,
+ &registers[REGISTER_BYTE (regnum)]);
}
registers_fetched ();
@@ -483,8 +483,8 @@ nindy_store_registers(regno)
memcpy (nindy_regs.tcw, &registers[REGISTER_BYTE (TCW_REGNUM)], 1*4);
for (regnum = FP0_REGNUM; regnum < FP0_REGNUM + 4; regnum++)
{
- floatformat_to_double (&floatformat_i960_ext,
- &registers[REGISTER_BYTE (regnum)], &dub);
+ FLOATFORMAT_TO_DOUBLEST (&floatformat_i960_ext,
+ &registers[REGISTER_BYTE (regnum)], &dub);
store_floating (&nindy_regs.fp_as_double[8 * (regnum - FP0_REGNUM)],
REGISTER_VIRTUAL_SIZE (regnum),
dub);