public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use common_val_print in mi-main.c
@ 2020-03-14 0:04 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-03-14 0:04 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a6e05a6c3a9439a7253d2eab7ee4fe760b4cc829
commit a6e05a6c3a9439a7253d2eab7ee4fe760b4cc829
Author: Tom Tromey <tom@tromey.com>
Date: Fri Mar 13 17:39:52 2020 -0600
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.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/mi/mi-main.c | 4 +---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f68e90317d9..3cab13b7432 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index d0a3b288744..68cbcdd4fcd 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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-14 0:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-14 0:04 [binutils-gdb] Use common_val_print in mi-main.c Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).