proc: StepOut remove if condition that is always true
This commit is contained in:
parent
49c6498512
commit
ae846a51f2
@ -342,12 +342,9 @@ func (dbp *Target) StepOut() error {
|
|||||||
return dbp.Continue()
|
return dbp.Continue()
|
||||||
}
|
}
|
||||||
|
|
||||||
var deferpc uint64
|
deferpc, err := setDeferBreakpoint(dbp, nil, topframe, sameGCond, false)
|
||||||
if !backward {
|
if err != nil {
|
||||||
deferpc, err = setDeferBreakpoint(dbp, nil, topframe, sameGCond, false)
|
return err
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if topframe.Ret == 0 && deferpc == 0 {
|
if topframe.Ret == 0 && deferpc == 0 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user