diff options
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index fd42ae0..5a25498 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -231,7 +231,7 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset, { wtype = TYPE_TARGET_TYPE (type); } - vt_val = value_at (wtype, vt_address, NULL); + vt_val = value_at (wtype, vt_address); val_print (VALUE_TYPE (vt_val), VALUE_CONTENTS (vt_val), 0, VALUE_ADDRESS (vt_val), stream, format, deref_ref, recurse + 1, pretty); @@ -281,8 +281,7 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset, value_at (TYPE_TARGET_TYPE (type), unpack_pointer (lookup_pointer_type (builtin_type_void), - valaddr + embedded_offset), - NULL); + valaddr + embedded_offset)); val_print (VALUE_TYPE (deref_val), VALUE_CONTENTS (deref_val), 0, @@ -445,7 +444,7 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset, case TYPE_CODE_METHOD: { - struct value *v = value_at (type, address, NULL); + struct value *v = value_at (type, address); cp_print_class_method (VALUE_CONTENTS (value_addr (v)), lookup_pointer_type (type), stream); break; |