pkg/proc: Remove unused parameter

Also cleanup some typos.
This commit is contained in:
Derek Parker
2020-03-27 14:30:27 -07:00
committed by Alessandro Arzilli
parent 2786e46c5f
commit 5177c247f6
2 changed files with 4 additions and 4 deletions

View File

@ -74,12 +74,12 @@ const (
StopUnknown StopReason = iota StopUnknown StopReason = iota
StopLaunched // The process was just launched StopLaunched // The process was just launched
StopAttached // The debugger stopped the process after attaching 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 StopBreakpoint // The target process hit one or more software breakpoints
StopHardcodedBreakpoint // The target process hit a hardcoded breakpoint (for example runtime.Breakpoint()) StopHardcodedBreakpoint // The target process hit a hardcoded breakpoint (for example runtime.Breakpoint())
StopManual // A manual stop was requested StopManual // A manual stop was requested
StopNextFinished // The next/step/stepout command terminated 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, // NewTargetConfig contains the configuration for a new Target object,

View File

@ -594,7 +594,7 @@ func next(dbp *Target, stepInto, inlinedStepOut bool) error {
if inlinedStepOut { if inlinedStepOut {
frame = retframe frame = retframe
} }
pcs, err = removeInlinedCalls(dbp, pcs, frame) pcs, err = removeInlinedCalls(pcs, frame)
if err != nil { if err != nil {
return err return err
} }
@ -717,7 +717,7 @@ func FindDeferReturnCalls(text []AsmInstruction) []uint64 {
// Removes instructions belonging to inlined calls of topframe from pcs. // Removes instructions belonging to inlined calls of topframe from pcs.
// If includeCurrentFn is true it will also remove all instructions // If includeCurrentFn is true it will also remove all instructions
// belonging to the current function. // 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) dwarfTree, err := topframe.Call.Fn.cu.image.getDwarfTree(topframe.Call.Fn.offset)
if err != nil { if err != nil {
return pcs, err return pcs, err