diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-18 20:31:12 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-18 20:31:12 +0000 |
commit | b2ccb6a465eba4ad89e2601961acd8447c784f10 (patch) | |
tree | 78f28a328286009f5cfe1f40d6b6fd2e71e2eae9 /gdb/values.c | |
parent | 19ed89603568a00c7c5cd88e14a4a87d19aa98e4 (diff) | |
download | gdb-b2ccb6a465eba4ad89e2601961acd8447c784f10.zip gdb-b2ccb6a465eba4ad89e2601961acd8447c784f10.tar.gz gdb-b2ccb6a465eba4ad89e2601961acd8447c784f10.tar.bz2 |
* printcmd.c (print_address), values.c (value_as_pointer): Don't
use ADDR_BITS_REMOVE.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c index 337dd10..65ecb23 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -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 |