diff options
Diffstat (limited to 'gdb/i387-tdep.c')
-rw-r--r-- | gdb/i387-tdep.c | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c index 0bb1631..20e446d 100644 --- a/gdb/i387-tdep.c +++ b/gdb/i387-tdep.c @@ -1,5 +1,5 @@ /* Intel 387 floating point stuff. - Copyright (C) 1988, 1989, 1991, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1988, 89, 91, 98, 99, 2000 Free Software Foundation, Inc. This file is part of GDB. @@ -387,51 +387,3 @@ i387_float_info (void) printf_filtered ("Opcode: %s\n", local_hex_string_custom (fop ? (fop | 0xd800) : 0, "04")); } - - -/* FIXME: The functions on this page are used to provide `long double' - support for Linux. However, the approach does not seem to be the - right one, and we are planning to solve this in a way that should - work for all i386 targets. These functions will disappear in the - near future, so please don't use them. */ -#ifdef LD_I387 -int -i387_extract_floating (PTR addr, int len, DOUBLEST *dretptr) -{ - if (len == TARGET_LONG_DOUBLE_BIT / 8) - { - if (HOST_LONG_DOUBLE_FORMAT == TARGET_LONG_DOUBLE_FORMAT) - { - DOUBLEST retval; - - memcpy (dretptr, addr, sizeof (retval)); - } - else - floatformat_to_doublest (TARGET_LONG_DOUBLE_FORMAT, addr, dretptr); - - return 1; - } - else - return 0; -} - -int -i387_store_floating (PTR addr, int len, DOUBLEST val) -{ - if (len == TARGET_LONG_DOUBLE_BIT / 8) - { - /* This `if' may be totally stupid. I just put it in here to be - absolutely sure I'm preserving the semantics of the code I'm - frobbing, while I try to maintain portability boundaries; I - don't actually know exactly what it's doing. -JimB, May 1999 */ - if (HOST_LONG_DOUBLE_FORMAT == TARGET_LONG_DOUBLE_FORMAT) - memcpy (addr, &val, sizeof (val)); - else - floatformat_from_doublest (TARGET_LONG_DOUBLE_FORMAT, &val, addr); - - return 1; - } - else - return 0; -} -#endif /* LD_I387 */ |