mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 08:47:28 +00:00
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.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user