From 23b0f06be43054a9b182e7ea60a763c35302924a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 13 Mar 2020 17:39:52 -0600 Subject: 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 * 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. --- gdb/go-lang.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/go-lang.h') diff --git a/gdb/go-lang.h b/gdb/go-lang.h index ccfcb8d..8647964 100644 --- a/gdb/go-lang.h +++ b/gdb/go-lang.h @@ -88,4 +88,10 @@ extern void go_val_print (struct type *type, struct value *val, const struct value_print_options *options); +/* Implement la_value_print_inner for Go. */ + +extern void go_value_print_inner (struct value *value, + struct ui_file *stream, int recurse, + const struct value_print_options *options); + #endif /* !defined (GO_LANG_H) */ -- cgit v1.1