* printcmd.c (print_address), values.c (value_as_pointer): Don't

use ADDR_BITS_REMOVE.
This commit is contained in:
Jim Kingdon
1993-08-18 20:31:12 +00:00
parent 19ed896035
commit b2ccb6a465
3 changed files with 24 additions and 7 deletions

View File

@@ -552,7 +552,14 @@ value_as_pointer (val)
{
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
#if 0
/* ADDR_BITS_REMOVE is wrong if we are being called for a
non-address (e.g. argument to "signal", "info break", etc.), or
for pointers to char, in which the low bits *are* significant. */
return ADDR_BITS_REMOVE(value_as_long (val));
#else
return value_as_long (val);
#endif
}
/* Unpack raw data (copied from debugee, target byte order) at VALADDR