mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
pkg/proc: Remove unused parameter
Also cleanup some typos.
This commit is contained in:
committed by
Alessandro Arzilli
parent
2786e46c5f
commit
5177c247f6
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user