Patchwork [05/55] Use common_val_print in mi-main.c

login
register
mail settings
Submitter Tom Tromey
Date Dec. 8, 2019, 6:29 p.m.
Message ID <20191208182958.10181-6-tom@tromey.com>
Download mbox | patch
Permalink /patch/36613/
State New
Headers show

Comments

Tom Tromey - Dec. 8, 2019, 6:29 p.m.
This changes a spot in mi-main.c to use common_val_print rather than
val_print.

gdb/ChangeLog
2019-12-08  Tom Tromey  <tom@tromey.com>

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

Change-Id: Ibb791b97c47337609470cbe7baf4684f3b3decab
---
 gdb/ChangeLog    | 4 ++++
 gdb/mi/mi-main.c | 4 +---
 2 files changed, 5 insertions(+), 3 deletions(-)

Patch

diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index c14897a5f71..6afe191ad0c 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1136,9 +1136,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);
 }