From 5177c247f6f032042009d2f93e9dc2e625e846cc Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Fri, 27 Mar 2020 14:30:27 -0700 Subject: [PATCH] pkg/proc: Remove unused parameter Also cleanup some typos. --- pkg/proc/target.go | 4 ++-- pkg/proc/target_exec.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/proc/target.go b/pkg/proc/target.go index 3ba3de07..a871b00e 100644 --- a/pkg/proc/target.go +++ b/pkg/proc/target.go @@ -74,12 +74,12 @@ const ( StopUnknown StopReason = iota StopLaunched // The process was just launched StopAttached // The debugger stopped the process after attaching - StopExited // The target proces terminated + StopExited // The target process terminated StopBreakpoint // The target process hit one or more software breakpoints StopHardcodedBreakpoint // The target process hit a hardcoded breakpoint (for example runtime.Breakpoint()) StopManual // A manual stop was requested StopNextFinished // The next/step/stepout command terminated - StopCallReturned // An injected call commpleted + StopCallReturned // An injected call completed ) // NewTargetConfig contains the configuration for a new Target object, diff --git a/pkg/proc/target_exec.go b/pkg/proc/target_exec.go index e3465479..1ee879c7 100644 --- a/pkg/proc/target_exec.go +++ b/pkg/proc/target_exec.go @@ -594,7 +594,7 @@ func next(dbp *Target, stepInto, inlinedStepOut bool) error { if inlinedStepOut { frame = retframe } - pcs, err = removeInlinedCalls(dbp, pcs, frame) + pcs, err = removeInlinedCalls(pcs, frame) if err != nil { return err } @@ -717,7 +717,7 @@ func FindDeferReturnCalls(text []AsmInstruction) []uint64 { // Removes instructions belonging to inlined calls of topframe from pcs. // If includeCurrentFn is true it will also remove all instructions // belonging to the current function. -func removeInlinedCalls(dbp Process, pcs []uint64, topframe Stackframe) ([]uint64, error) { +func removeInlinedCalls(pcs []uint64, topframe Stackframe) ([]uint64, error) { dwarfTree, err := topframe.Call.Fn.cu.image.getDwarfTree(topframe.Call.Fn.offset) if err != nil { return pcs, err