I can print the variable s in gdb only in the first example, but in the
second "p s" gives an error, I always
get 'No symbol "s" in current context' no matter where I put a breakpoint
in the source file.
Is that expected to happen? or there should be something wrong with my
I've built the samples with 'go build -gcflags "-N -l" -o sample'.
Still, info locals shows:
(gdb) info locals
&done = 0xc210000018
&s = 0xc21000a150
If Go gdb debugging involving goroutines is not working, what are the best
"The most effective debugging tool is still careful thought — coupled with
judiciously placed print statements."
GNU gdb (GDB) 18.104.22.16840101-cvs
go version go1.2 linux/amd64
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.