aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-13 17:39:52 -0600
committerTom Tromey <tom@tromey.com>2020-03-13 18:03:39 -0600
commit410cf315014145f169c146442e9c28163d9ae10a (patch)
tree194bd269c7a827f217ad0b2c48d1034e713b63e0 /gdb/cp-valprint.c
parent72a45c938438f33bf8e7de6a5f068ba31c8c1e36 (diff)
downloadgdb-410cf315014145f169c146442e9c28163d9ae10a.zip
gdb-410cf315014145f169c146442e9c28163d9ae10a.tar.gz
gdb-410cf315014145f169c146442e9c28163d9ae10a.tar.bz2
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 <tom@tromey.com> * cp-valprint.c (cp_print_static_field): Use common_val_print.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index e936e3f..569b0a5 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