aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-08-18 20:31:12 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-08-18 20:31:12 +0000
commitb2ccb6a465eba4ad89e2601961acd8447c784f10 (patch)
tree78f28a328286009f5cfe1f40d6b6fd2e71e2eae9 /gdb/values.c
parent19ed89603568a00c7c5cd88e14a4a87d19aa98e4 (diff)
downloadgdb-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.c7
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