[08/55] Use common_val_print in cp-valprint.c
Commit Message
This changes a spot in cp-valprint.c to use common_val_print rather
than val_print.
gdb/ChangeLog
2019-12-08 Tom Tromey <tom@tromey.com>
* cp-valprint.c (cp_print_static_field): Use common_val_print.
Change-Id: Ib967e82c7b01409509adcd9c3bf5ae04a9541cff
---
gdb/ChangeLog | 4 ++++
gdb/cp-valprint.c | 6 +-----
2 files changed, 5 insertions(+), 5 deletions(-)
@@ -684,11 +684,7 @@ cp_print_static_field (struct type *type,
opts = *options;
opts.deref_ref = 0;
- val_print (type,
- value_embedded_offset (val),
- value_address (val),
- stream, recurse, val,
- &opts, current_language);
+ common_val_print (val, stream, recurse, &opts, current_language);
}
/* Find the field in *SELF, or its non-virtual base classes, with