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