compiler: add debugger-callable AST dump functins

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 19 February 2019 18:44 EST

Introduce a set debug_go_* global functions that can be used to emit AST dumps for Go statements and expressions from within GDB (for use by people developing gccgo).

Reviewed-on: https://go-review.googlesource.com/c/162903

6180c9601aa compiler: add debugger-callable AST dump functins
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/ast-dump.cc | 83 ++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 83 insertions(+), 2 deletions(-)

Upstream: gcc.gnu.org


  • Share