• Robert Griesemer's avatar
    cmd/compile/internal/gc: add alternative node dumper for debugging · 5d444e36
    Robert Griesemer authored
    dump/fdump is a reflection-based data structure dumper slightly
    customized for the compiler's Node data structure. It dumps the
    transitivle closure of Node (and other) data structures using a
    recursive descent depth first traversal and permits filtering
    options (recursion depth limitation, filtering of struct fields).
    
    I have been using it to diagnose compiler bugs and found it more
    useful than the existing node printing code in some cases because
    field filtering reduces the output to the interesting parts.
    
    No impact on rest of compiler if functions are not called (which
    they only should during a debugging session).
    
    Change-Id: I79d7227f10dd78dbd4bbcdf204db236102fc97a7
    Reviewed-on: https://go-review.googlesource.com/136397Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    5d444e36
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...