proc: Small refactor
This commit is contained in:
parent
971d7968c0
commit
7847e94cfa
@ -186,9 +186,8 @@ func (dbp *Process) FindFunctionLocation(funcName string, firstLine bool, lineOf
|
||||
if len(lines) > 0 {
|
||||
linePC, _, err := dbp.goSymTable.LineToPC(filename, lines[0])
|
||||
return linePC, err
|
||||
} else {
|
||||
return fn.Entry, nil
|
||||
}
|
||||
return fn.Entry, nil
|
||||
} else if lineOffset > 0 {
|
||||
filename, lineno, _ := dbp.goSymTable.PCToLine(fn.Entry)
|
||||
breakAddr, _, err := dbp.goSymTable.LineToPC(filename, lineno+lineOffset)
|
||||
|
Loading…
Reference in New Issue
Block a user