aboutsummaryrefslogtreecommitdiff
path: root/gdb/d-lang.h
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:40 -0600
commitd133c3e1a877259bbee460897d9a6a2820ffe451 (patch)
tree6d0b51c75ff0f04eb258400b4bc6438067094172 /gdb/d-lang.h
parent23b0f06be43054a9b182e7ea60a763c35302924a (diff)
downloadgdb-d133c3e1a877259bbee460897d9a6a2820ffe451.zip
gdb-d133c3e1a877259bbee460897d9a6a2820ffe451.tar.gz
gdb-d133c3e1a877259bbee460897d9a6a2820ffe451.tar.bz2
Convert D printing to value-based API
As with Rust and Go, it was straightforward to convert D to the value-based API directly. gdb/ChangeLog 2020-03-13 Tom Tromey <tom@tromey.com> * d-valprint.c (dynamic_array_type): Call d_value_print_inner. (d_value_print_inner): New function. * d-lang.h (d_value_print_inner): Declare. * d-lang.c (d_language_defn): Use d_value_print_inner.
Diffstat (limited to 'gdb/d-lang.h')
-rw-r--r--gdb/d-lang.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/d-lang.h b/gdb/d-lang.h
index 88e1ea3..9b4e504 100644
--- a/gdb/d-lang.h
+++ b/gdb/d-lang.h
@@ -84,4 +84,10 @@ extern void d_val_print (struct type *type,
struct value *val,
const struct value_print_options *options);
+/* Implement la_value_print_inner for D. */
+
+extern void d_value_print_inner (struct value *val,
+ struct ui_file *stream, int recurse,
+ const struct value_print_options *options);
+
#endif /* !defined (D_LANG_H) */