Use common_val_print in mi-main.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 mi-main.c to use common_val_print rather than
val_print.

gdb/ChangeLog
2020-03-13  Tom Tromey  <tom@tromey.com>

* mi/mi-main.c (output_register): Use common_val_print.

gdb/ChangeLog
gdb/mi/mi-main.c

index f68e90317d985f3fb938941e68bc4e1ac210a58a..3cab13b743288f66213f4d54f96f8452e54e22a1 100644 (file)
@@ -1,3 +1,7 @@
+2020-03-13  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-main.c (output_register): Use common_val_print.
+
 2020-03-13  Tom Tromey  <tom@tromey.com>
 
        * infcmd.c (default_print_one_register_info): Use
index d0a3b2887440683fd1a64bc1acbd31b4c067e90a..68cbcdd4fcd4f70433847e03e407e3b1cd2e47dd 100644 (file)
@@ -1120,9 +1120,7 @@ output_register (struct frame_info *frame, int regnum, int format,
 
   get_formatted_print_options (&opts, format);
   opts.deref_ref = 1;
-  val_print (value_type (val),
-            value_embedded_offset (val), 0,
-            &stb, 0, val, &opts, current_language);
+  common_val_print (val, &stb, 0, &opts, current_language);
   uiout->field_stream ("value", stb);
 }
 
This page took 0.02957 seconds and 4 git commands to generate.