Use common_val_print in mi-main.c

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.
This commit is contained in:
Tom Tromey 2020-03-13 17:39:52 -06:00
parent 3444c526a3
commit a6e05a6c3a
2 changed files with 5 additions and 3 deletions

View 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

View 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);
}