aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-28 06:06:05 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-28 06:06:05 +0000
commit4879254531c753527f4ae3bcf7e625fa71ca3902 (patch)
tree36769293d673d3ce5fd18acbc4b568911d05cb61 /gdb/findvar.c
parentb30601cb28a62dee5579e2cffe2b2d02bd1e0a9d (diff)
downloadgdb-4879254531c753527f4ae3bcf7e625fa71ca3902.zip
gdb-4879254531c753527f4ae3bcf7e625fa71ca3902.tar.gz
gdb-4879254531c753527f4ae3bcf7e625fa71ca3902.tar.bz2
* i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h, m88k-tdep.c: Use floatformat.h instead of ieee-float.h. * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff * findvar.c: Update comment regarding ieee-float.h.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r--gdb/findvar.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 8f28b90..531075e 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -195,9 +195,8 @@ store_address (addr, len, val)
formats. So if host is IEEE floating and target is VAX floating,
or vice-versa, it loses. This means that we can't (yet) use these
routines for extendeds. Extendeds are handled by
- REGISTER_CONVERTIBLE. What we want is a fixed version of
- ieee-float.c (the current version can't deal with single or double,
- and I suspect it is probably broken for some extendeds too).
+ REGISTER_CONVERTIBLE. What we want is to use floatformat.h, but that
+ doesn't yet handle VAX floating at all.
2. We can't deal with it if there is more than one floating point
format in use. This has to be fixed at the unpack_double level.
@@ -423,14 +422,14 @@ value_of_register (regnum)
{
CORE_ADDR addr;
int optim;
- register value val;
+ register value reg_val;
char raw_buffer[MAX_REGISTER_RAW_SIZE];
enum lval_type lval;
get_saved_register (raw_buffer, &optim, &addr,
selected_frame, regnum, &lval);
- val = allocate_value (REGISTER_VIRTUAL_TYPE (regnum));
+ reg_val = allocate_value (REGISTER_VIRTUAL_TYPE (regnum));
/* Convert raw data to virtual format if necessary. */
@@ -438,17 +437,17 @@ value_of_register (regnum)
if (REGISTER_CONVERTIBLE (regnum))
{
REGISTER_CONVERT_TO_VIRTUAL (regnum, REGISTER_VIRTUAL_TYPE (regnum),
- raw_buffer, VALUE_CONTENTS_RAW (val));
+ raw_buffer, VALUE_CONTENTS_RAW (reg_val));
}
else
#endif
- memcpy (VALUE_CONTENTS_RAW (val), raw_buffer,
+ memcpy (VALUE_CONTENTS_RAW (reg_val), raw_buffer,
REGISTER_RAW_SIZE (regnum));
- VALUE_LVAL (val) = lval;
- VALUE_ADDRESS (val) = addr;
- VALUE_REGNO (val) = regnum;
- VALUE_OPTIMIZED_OUT (val) = optim;
- return val;
+ VALUE_LVAL (reg_val) = lval;
+ VALUE_ADDRESS (reg_val) = addr;
+ VALUE_REGNO (reg_val) = regnum;
+ VALUE_OPTIMIZED_OUT (reg_val) = optim;
+ return reg_val;
}
/* Low level examining and depositing of registers.