[committed]: [PATCH 0/4] Fix member pointer bugs
Tom Tromey
tromey@redhat.com
Wed Nov 28 16:37:00 GMT 2012
>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:
Yao> No, I didn't see this warning before. I'll have a look.
This fixes it for me. What do you think? I mean aside from the line
break problem...
Tom
diff --git a/gdb/eval.c b/gdb/eval.c
index 55582e0..faad9e3 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -1410,7 +1410,7 @@ evaluate_subexp_standard (struct type *expect_type,
mem_offset = value_as_long (arg1);
- arg1 = value_from_pointer (type_ptr,
+ arg1 = value_from_pointer (lookup_pointer_type (TYPE_TARGET_TYPE (type)),
value_as_long (arg2) + mem_offset);
arg1 = value_ind (arg1);
tem = 1;
More information about the Gdb-patches
mailing list