Minor function refactor
This commit is contained in:
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 {
|
||||
@ -151,7 +152,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
|
||||
|
Loading…
Reference in New Issue
Block a user