From: Tom Tromey Date: Fri, 13 Mar 2020 23:39:52 +0000 (-0600) Subject: Use common_val_print in cp-valprint.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=410cf315014145f169c146442e9c28163d9ae10a;p=binutils-gdb.git Use common_val_print in cp-valprint.c This changes a spot in cp-valprint.c to use common_val_print rather than val_print. gdb/ChangeLog 2020-03-13 Tom Tromey * cp-valprint.c (cp_print_static_field): Use common_val_print. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6cda7481b8c..f43c406e3fd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-03-13 Tom Tromey + + * cp-valprint.c (cp_print_static_field): Use common_val_print. + 2020-03-13 Tom Tromey * f-valprint.c (f77_print_array_1, f_val_print): Use diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index e936e3ffa32..569b0a5c086 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -689,11 +689,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