FAQ
Hi, given these two simple files http://play.golang.org/p/BP0J1Ipplj and
http://play.golang.org/p/5nuEgjslTE,
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
enviroment,
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
practices? just:

"The most effective debugging tool is still careful thought — coupled with
judiciously placed print statements."

GNU gdb (GDB) 7.6.50.20140101-cvs
go version go1.2 linux/amd64

Regards,
Francisco Lopes

--
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 golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 21, '14 at 6:02p
activeMar 21, '14 at 6:02p
posts1
users1
websitegolang.org

1 user in discussion

Francisco: 1 post

People

Translate

site design / logo © 2022 Grokbase