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

Tom Tromey tom@tromey.com
Sun Dec 8 18:31:00 GMT 2019


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(-)

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



More information about the Gdb-patches mailing list