aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Howard <dhoward@redhat.com>2002-06-18 23:41:02 +0000
committerDon Howard <dhoward@redhat.com>2002-06-18 23:41:02 +0000
commit56468235ecac8973cdff69b0964add18c96ed23b (patch)
tree73f6cb632827475064dea0b1e23514b6d3c37212
parent0b624158506c9d0c2813b37555ffe77874abda60 (diff)
downloadgdb-56468235ecac8973cdff69b0964add18c96ed23b.zip
gdb-56468235ecac8973cdff69b0964add18c96ed23b.tar.gz
gdb-56468235ecac8973cdff69b0964add18c96ed23b.tar.bz2
2002-06-18 Don Howard <dhoward@redhat.com>
* valops.c (value_ind): Use value_at_lazy() when dereferencing type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for suggesting this solution.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/valops.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d168f6b39..70ca5ed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-18 Don Howard <dhoward@redhat.com>
+
+ * valops.c (value_ind): Use value_at_lazy() when dereferencing
+ type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
+ suggesting this solution.
+
2002-06-18 Andrew Cagney <ac131313@redhat.com>
* config/romp/xm-rtbsd.h: Delete file.
diff --git a/gdb/valops.c b/gdb/valops.c
index 474c53a..514a9f1 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -961,9 +961,9 @@ value_ind (struct value *arg1)
to do. "long long" variables are rare enough that
BUILTIN_TYPE_LONGEST would seem to be a mistake. */
if (TYPE_CODE (base_type) == TYPE_CODE_INT)
- return value_at (builtin_type_int,
- (CORE_ADDR) value_as_long (arg1),
- VALUE_BFD_SECTION (arg1));
+ return value_at_lazy (builtin_type_int,
+ (CORE_ADDR) value_as_long (arg1),
+ VALUE_BFD_SECTION (arg1));
else if (TYPE_CODE (base_type) == TYPE_CODE_PTR)
{
struct type *enc_type;