More cleanup

This commit is contained in:
Derek Parker
2015-02-28 21:34:55 -06:00
parent 0ba45f8487
commit c7cc84fa83
5 changed files with 25 additions and 42 deletions

View File

@ -40,7 +40,6 @@ func (t *ThreadContext) singleStep() error {
func (t *ThreadContext) blocked() bool {
// TODO(dp) cache the func pc to remove this lookup
// TODO(dp) check err
pc, _ := t.CurrentPC()
fn := t.Process.GoSymTable.PCToFunc(pc)
if fn != nil && ((fn.Name == "runtime.futex") || (fn.Name == "runtime.usleep") || (fn.Name == "runtime.clone")) {