Commit dc3bef36 authored by Hana Kim's avatar Hana Kim Committed by Hyang-Ah Hana Kim
Browse files

runtime/gdb: use goroutine atomicstatus to determine the state

Previously find_goroutine determined whether a goroutine is
stopped by checking the sched.sp field. This heuristic doesn't
always hold but causes find_goroutine to return bogus pc/sp
info for running goroutines.

This change uses the atomicstatus bit to determine
the state which is more accurate.

R=go1.11

Change-Id: I537d432d9e0363257120a196ce2ba52da2970f59
Reviewed-on: https://go-review.googlesource.com/49691


Reviewed-by: default avatarAustin Clements <austin@google.com>
parent ef175731
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment