Skip to content

Commit

Permalink
pkg/proc: Remove unused parameter
Browse files Browse the repository at this point in the history
Also cleanup some typos.
  • Loading branch information
derekparker authored and aarzilli committed Mar 28, 2020
1 parent 2786e46 commit 5177c24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/proc/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pkg/proc/target_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5177c24

Please sign in to comment.