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 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 {
|
||||||
@ -152,7 +153,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
|
||||||
// execution. Sends SIGSTOP to all threads.
|
// execution. Sends SIGSTOP to all threads.
|
||||||
|
Loading…
Reference in New Issue
Block a user