diff options
author | Tom Tromey <tom@tromey.com> | 2020-03-13 17:39:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-03-13 18:03:40 -0600 |
commit | d133c3e1a877259bbee460897d9a6a2820ffe451 (patch) | |
tree | 6d0b51c75ff0f04eb258400b4bc6438067094172 /gdb/d-lang.c | |
parent | 23b0f06be43054a9b182e7ea60a763c35302924a (diff) | |
download | gdb-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.c')
-rw-r--r-- | gdb/d-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/d-lang.c b/gdb/d-lang.c index 71dc4c6..4dbcf53 100644 --- a/gdb/d-lang.c +++ b/gdb/d-lang.c @@ -225,7 +225,7 @@ extern const struct language_defn d_language_defn = c_print_typedef, /* Print a typedef using appropriate syntax. */ d_val_print, /* Print a value using appropriate syntax. */ - nullptr, /* la_value_print_inner */ + d_value_print_inner, /* la_value_print_inner */ c_value_print, /* Print a top-level value. */ default_read_var_value, /* la_read_var_value */ NULL, /* Language specific skip_trampoline. */ |