
Instead of repeatedly calling StepInstruction set breakpoints to the destination of CALL instructions (or on the CALL instructions themselves for indirect CALLs), then call Continue. Calls to unexported runtime functions are skipped. Reduces the number of code paths managing inferior state from 3 to 2 (StepInstruction, Continue). Fixes #561
12 lines
108 B
Go
12 lines
108 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func testfunction() {
|
|
fmt.Printf("here!\n")
|
|
}
|
|
|
|
func main() {
|
|
testfunction()
|
|
}
|