aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-03-13 17:39:52 -0600
committerTom Tromey <tom@tromey.com>2020-03-13 18:03:39 -0600
commita6e05a6c3a9439a7253d2eab7ee4fe760b4cc829 (patch)
tree61b0a61bfdf4bd89eb4d8f5e1be247f89692328b
parent3444c526a33e61aeff86cbe1184e765458007890 (diff)
downloadgdb-a6e05a6c3a9439a7253d2eab7ee4fe760b4cc829.zip
gdb-a6e05a6c3a9439a7253d2eab7ee4fe760b4cc829.tar.gz
gdb-a6e05a6c3a9439a7253d2eab7ee4fe760b4cc829.tar.bz2
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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/mi/mi-main.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f68e903..3cab13b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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
common_val_print.
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index d0a3b28..68cbcdd 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -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);
}