mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 11:33:45 +08:00
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.
This commit is contained in:
parent
0b62415850
commit
56468235ec
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user