• Austin Clements's avatar
    runtime: fix GDB goroutine N command when N is running · 24659717
    Austin Clements authored
    The current implementation of "goroutine N cmd" assumes it can get
    goroutine N's state from the goroutine's sched buffer. But this only
    works if the goroutine is blocked. Extend find_goroutine so that, if
    there is no saved scheduler state for a goorutine, it tries to find
    the thread the goroutine is running on and use the thread's current
    register state. We also extend find_goroutine to understand saved
    syscall register state.
    
    Fixes #13887.
    
    Change-Id: I739008a8987471deaa4a9da918655e4042cf969b
    Reviewed-on: https://go-review.googlesource.com/45031
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    24659717
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...