This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Go patch committed: Add debugging helper function debug_go_type


This patch to the Go frontend by Than McIntosh adds a new debugging
helper function debug_go_type.  This is intended to display the
contents of a Type object in a way useful to debugging a run of the
compiler.  Prior to this the only useful alternative for debugging
types was invoking the mangled_name method, which has problems (for
example, won't work on interface types prior to finalizing of
methods).  This is a "deep" dump, meaning that all types reachable
from the type passed to debug_go_type() will be printed out.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu.  Committed
to mainline.

Ian

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]