From: Don Howard Date: Tue, 18 Jun 2002 23:41:02 +0000 (+0000) Subject: 2002-06-18 Don Howard X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56468235ecac8973cdff69b0964add18c96ed23b;p=binutils-gdb.git 2002-06-18 Don Howard * valops.c (value_ind): Use value_at_lazy() when dereferencing type int expressions. Thanks to Jim Blandy for suggesting this solution. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d168f6b39fc..70ca5ed1899 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-06-18 Don Howard + + * valops.c (value_ind): Use value_at_lazy() when dereferencing + type int expressions. Thanks to Jim Blandy for + suggesting this solution. + 2002-06-18 Andrew Cagney * config/romp/xm-rtbsd.h: Delete file. diff --git a/gdb/valops.c b/gdb/valops.c index 474c53a5088..514a9f14b71 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;