public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Convert ada_val_print_ref to value-based API
@ 2020-03-14 0:08 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2020-03-14 0:08 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2e088f8b6ea61fa9db1b592cbd4a6aa80b4e0ab5
commit 2e088f8b6ea61fa9db1b592cbd4a6aa80b4e0ab5
Author: Tom Tromey <tom@tromey.com>
Date: Fri Mar 13 17:39:52 2020 -0600
Convert ada_val_print_ref to value-based API
This converts ada_val_print_ref to the value-based API by using
common_val_print rather than val_print.
gdb/ChangeLog
2020-03-13 Tom Tromey <tom@tromey.com>
* ada-valprint.c (ada_val_print_ref): Use common_val_print.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/ada-valprint.c | 6 ++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b235b0f6d64..78ffe614c95 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-03-13 Tom Tromey <tom@tromey.com>
+
+ * ada-valprint.c (ada_val_print_ref): Use common_val_print.
+
2020-03-13 Tom Tromey <tom@tromey.com>
* ada-valprint.c (ada_value_print_num): New function.
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index 4b89473fef3..1d3b06ddfdd 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -1207,10 +1207,8 @@ ada_val_print_ref (struct type *type, const gdb_byte *valaddr,
if (value_lazy (deref_val))
value_fetch_lazy (deref_val);
- val_print (value_type (deref_val),
- value_embedded_offset (deref_val),
- value_address (deref_val), stream, recurse + 1,
- deref_val, options, language_def (language_ada));
+ common_val_print (deref_val, stream, recurse + 1,
+ options, language_def (language_ada));
}
/* See the comment on ada_val_print. This function differs in that it
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-14 0:08 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:08 [binutils-gdb] Convert ada_val_print_ref to value-based API 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).