Skip to content

Commit 61e5bdf

Browse files
Remove RootFuncName field in dynbp as its not needed
1 parent 8960827 commit 61e5bdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

service/debugger/debugger.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,6 @@ func (d *Debugger) traverse(t proc.ValidTargets, f *proc.Function, depth int, fo
14351435
// at runtime and we do this via a call back mechanism
14361436
if instr.IsCall() && instr.DestLoc == nil {
14371437
dynbp, err := t.SetBreakpoint(0, instr.Loc.PC, proc.NextBreakpoint, nil)
1438-
dynbp.RootFuncName = rootstr
14391438
if err != nil {
14401439
return nil, fmt.Errorf("error setting breakpoint inside deferreturn")
14411440
}
@@ -1449,7 +1448,7 @@ func (d *Debugger) traverse(t proc.ValidTargets, f *proc.Function, depth int, fo
14491448
// used in pkg/terminal/command.go:printTraceOutput
14501449
rootindex := -1
14511450
for i := len(rawlocs) - 1; i >= 0; i-- {
1452-
if rawlocs[i].Call.Fn.Name == dynbp.RootFuncName {
1451+
if rawlocs[i].Call.Fn.Name == rootstr {
14531452
if rootindex == -1 {
14541453
rootindex = i
14551454
break

0 commit comments

Comments
 (0)