diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1998-10-02 11:02:00 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1998-10-02 11:02:00 +0000 |
commit | 47b8a5cef34de4d637105307711aea07e0533920 (patch) | |
tree | 1c1f4168538d5072ad5007c43165b6554349e506 /gdb/values.c | |
parent | f2bd86804449bfd654e789214df1ff96158535db (diff) | |
download | gdb-47b8a5cef34de4d637105307711aea07e0533920.zip gdb-47b8a5cef34de4d637105307711aea07e0533920.tar.gz gdb-47b8a5cef34de4d637105307711aea07e0533920.tar.bz2 |
* target.c (target_xfer_memory): Handle requests with zero
transfer length right away.
* values.c (unpack_double): Set up code, length and signedness of
type _after_ checking for typedef.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/values.c b/gdb/values.c index d7be2b0..7b1b732 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -661,12 +661,15 @@ unpack_double (type, valaddr, invp) char *valaddr; int *invp; { - register enum type_code code = TYPE_CODE (type); - register int len = TYPE_LENGTH (type); - register int nosign = TYPE_UNSIGNED (type); + enum type_code code; + int len; + int nosign; *invp = 0; /* Assume valid. */ CHECK_TYPEDEF (type); + code = TYPE_CODE (type); + len = TYPE_LENGTH (type); + nosign = TYPE_UNSIGNED (type); if (code == TYPE_CODE_FLT) { #ifdef INVALID_FLOAT |