delve/_fixtures/callme.go
aarzilli 4116d66c8d proc: Replaced FunctionEntryToFirstLine with disassembly alternative
- Unlike FunctionEntryToFirstLine can skip the prologue on functions
that are defined on a single line, either because they weren't
formatted or because they were autogenerated
- Can skip the prologue on most functions when setting a breakpoint
with the filename:line syntax

Fixes #396
2016-02-18 09:11:34 -08:00

28 lines
292 B
Go

package main
import "fmt"
func callme(i int) {
fmt.Println("got:", i)
}
const nBytes = 10
var zeroarr [nBytes]byte
func callme2() {
for i := 0; i < nBytes; i++ {
zeroarr[i] = '0'
}
}
func callme3() {
callme2()
}
func main() {
for i := 0; i < 5; i++ {
callme(i)
}
callme3()
}