diff mbox

[08/55] Use common_val_print in cp-valprint.c

Message ID 20191208182958.10181-9-tom@tromey.com
State New
Headers show

Commit Message

Tom Tromey Dec. 8, 2019, 6:29 p.m. UTC
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(-)
diff mbox

Patch

diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 0ec84f6799e..9a26ab322a4 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -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