You're experiencing issue 5221. A related question is this one.
This problem has been partially fixed for ELF files but remains open for the Mach format which you are using. So I guess you have to wait for go 1.3 or the appropriate fix from tip to have this resolved.
Basically the problem is that the linker you use for the compiled .c
files does not extract
the debug info from the object (.o
) files but refers to them. As they're deleted after the
build process, gdb can't read them.
As a workaround, you might try to run go build -work
for go-glfw
so that the build
directory is not removed and the object files remain accessible.