From fef862e5feb0560292cdf3a4406408833340f3d7 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 22 Feb 2007 15:13:26 +0000 Subject: [PATCH] * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. --- gdb/ChangeLog | 4 ++++ gdb/valops.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5ca65528f62..5d84add15c8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-02-22 Markus Deuling + + * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. + 2007-02-20 Joel Brobecker * gdb_expat.h (XMLCALL): Define if not already defined. diff --git a/gdb/valops.c b/gdb/valops.c index a3bae6d12d1..51304be70cf 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -934,7 +934,7 @@ value_ind (struct value *arg1) BUILTIN_TYPE_LONGEST would seem to be a mistake. */ if (TYPE_CODE (base_type) == TYPE_CODE_INT) return value_at_lazy (builtin_type_int, - (CORE_ADDR) value_as_long (arg1)); + (CORE_ADDR) value_as_address (arg1)); else if (TYPE_CODE (base_type) == TYPE_CODE_PTR) { struct type *enc_type; -- 2.30.2