Use common_val_print in cp-valprint.c
authorTom Tromey <tom@tromey.com>
Fri, 13 Mar 2020 23:39:52 +0000 (17:39 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 14 Mar 2020 00:03:39 +0000 (18:03 -0600)
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.

gdb/ChangeLog
gdb/cp-valprint.c

index 6cda7481b8c90c770f2752747a83c59560cb180b..f43c406e3fd0623a25f4a275b828a50471a25196 100644 (file)
@@ -1,3 +1,7 @@
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * cp-valprint.c (cp_print_static_field): Use common_val_print.
+
 2020-03-13  Tom Tromey  <tom@tromey.com>
 
        * f-valprint.c (f77_print_array_1, f_val_print): Use
index e936e3ffa3234e80784d1514a82647b9136190e2..569b0a5c0867b513379e8f11020555a541fbb4c7 100644 (file)
@@ -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