delve/_fixtures/cgodisass.go
Alessandro Arzilli 059406e74f
service/dap: limit disassembly range (#3045)
Due to dyanmically loaded libraries there could be aribitrarily large
gaps in the address space, between functions. Limit the memory size we
are willing to disassemble.

Fixes #3040
2022-07-15 13:29:44 +02:00

15 lines
132 B
Go

package main
/*
int a(int v) {
return 0xff + v;
}
*/
import "C"
import "fmt"
func main() {
fmt.Println("aaa")
print(C.a(11))
}