• A
    terminal: make printcontext use SelectedGoroutine · 4f70ff0a
    aarzilli 提交于
    printcontext should use SelectedGoroutine instead of trusting that the
    goroutine running on current thread matches the SelectedGoroutine.
    
    When the user switches to a parked goroutine CurrentThread and
    SelectedGoroutine will diverge.
    
    Almost all calls to printcontext are safe, they happen after a continue
    command returns when SelectedGoroutine and CurrentThread always agree,
    but the calls in frameCommand and listCommand are wrong.
    
    Additionally we should stop reporting an error when the debugger is
    stopped on an unknown PC address.
    4f70ff0a
command_test.go 20.6 KB