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 | 23b0f06be43054a9b182e7ea60a763c35302924a (patch) | |
tree | f576a6b26248bef41099a9f08885566aebe1dae7 /gdb/go-lang.c | |
parent | 5f56f7cbd22219e84df3caece06f469c5063e5fb (diff) | |
download | gdb-23b0f06be43054a9b182e7ea60a763c35302924a.zip gdb-23b0f06be43054a9b182e7ea60a763c35302924a.tar.gz gdb-23b0f06be43054a9b182e7ea60a763c35302924a.tar.bz2 |
Convert Go printing to value-based API
This introduces go_value_print_inner, a modified copy of go_val_print.
Unlike some of the other languages, Go was straightforward to convert
to the value-based API all at once, so this patch takes that approach.
gdb/ChangeLog
2020-03-13 Tom Tromey <tom@tromey.com>
* go-valprint.c (go_value_print_inner): New function.
* go-lang.h (go_value_print_inner): Declare.
* go-lang.c (go_language_defn): Use go_value_print_inner.
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r-- | gdb/go-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c index 314c281..667c4ae 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -596,7 +596,7 @@ extern const struct language_defn go_language_defn = c_print_typedef, /* Print a typedef using appropriate syntax. */ go_val_print, /* Print a value using appropriate syntax. */ - nullptr, /* la_value_print_inner */ + go_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. */ |