I'm having trouble running GDB on a go binary (output pasted below). Here
are the best explanations I can come up with:
1) GDB needs updating. I find this unlikely -- the docs say GDB 7.x is
fine, but a stackoverflow comment implied that I actually need 7.5
2) My environment variables aren't set properly. I have GOPATH=~/go, but I
don't have a GOROOT. I don't know if this matters...
Any thoughts appreciated. Thanks!
mori@tek:~/go/src/github.com/nchoosek/hello$ go build hello.go
mori@tek:~/go/src/github.com/nchoosek/hello$ gdb hello -d /usr/local/go
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from
Loading Go Runtime support.
6 MOVL 8(SP), AX
7 LEAL 12(SP), BX
8 MOVL AX, 0(SP)
9 MOVL BX, 4(SP)
10 CALL runtime·linux_setup_vdso(SB)
11 CALL main(SB)
12 INT $3
14 TEXT main(SB),7,$0
15 JMP _rt0_386(SB)
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@example.com.
For more options, visit https://groups.google.com/groups/opt_out.