Minor function refactor

This commit is contained in:
Derek Parker 2015-03-24 08:31:56 -05:00
parent 684dc92ccd
commit 0d9b1ed29b

@ -121,7 +121,8 @@ func (dbp *DebuggedProcess) FindLocation(str string) (uint64, error) {
return 0, err
}
return pc, nil
} else {
}
// Try to lookup by function name
fn := dbp.GoSymTable.LookupFunc(str)
if fn != nil {
@ -152,7 +153,6 @@ func (dbp *DebuggedProcess) FindLocation(str string) (uint64, error) {
// Last resort, use as raw address
return id, nil
}
}
// Sends out a request that the debugged process halt
// execution. Sends SIGSTOP to all threads.