• David Chase's avatar
    cmd/compile: grow stack before test() to avoid gdb misbehavior · 77c51c6c
    David Chase authored
    While next-ing over a call in gdb, if execution of that call
    causes a goroutine's stack to grow (i.e., be moved), gdb loses
    track and runs ahead to the next breakpoint, or to the end of
    the program, whichever comes first.
    
    Prevent this by preemptively growing the stack so that
    ssa/debug_test.go will reliably measure what is intended,
    the goodness of line number placement and variable printing.
    
    Fixes #25497.
    
    Change-Id: I8daf931650292a8c8faad2285d7fd405f2157bd2
    Reviewed-on: https://go-review.googlesource.com/114080
    Run-TryBot: David Chase <drchase@google.com>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    77c51c6c
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...