Convert Go printing to value-based API
authorTom Tromey <tom@tromey.com>
Fri, 13 Mar 2020 23:39:52 +0000 (17:39 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 14 Mar 2020 00:03:40 +0000 (18:03 -0600)
commit23b0f06be43054a9b182e7ea60a763c35302924a
treef576a6b26248bef41099a9f08885566aebe1dae7
parent5f56f7cbd22219e84df3caece06f469c5063e5fb
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.
gdb/ChangeLog
gdb/go-lang.c
gdb/go-lang.h
gdb/go-valprint.c