New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gdb: gdb runtime-gdb.py is broken #4194
Comments
Status changed to Duplicate. Merged into issue #4193. |
i don't think this is a dup of 4193. somehow gdb doesn't load runtime-gdb.py, one possible reason is that the gdb doesn't support python plugins. To verify, try this in gdb: python print 1 Merged into issue #4193. |
The command to list goroutines is "info goroutines", not "goroutines". http://golang.org/doc/gdb Status changed to WorkingAsIntended. |
Comment 6 by burke@libbey.me: It seems runtime-gdb.py isn't loading for me either, using a 6-day old build of tip, OS X 10.8, and gdb 7.5.1. I might be doing something wrong, though. %%%%% go version go version devel +b5b5c246be0c Fri Mar 15 17:08:07 2013 -0700 darwin/amd64 %%%%% gdb ./build/hookshot GNU gdb (GDB) 7.5.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>; 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 "x86_64-apple-darwin12.2.0". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>;... Reading symbols from /Users/burke/go/src/github.com/shopify/hookshot/build/hookshot...done. (gdb) b main.main Breakpoint 1 at 0x2000: file /Users/burke/go/src/github.com/Shopify/hookshot/hookshot.go, line 87. (gdb) r Starting program: /Users/burke/go/src/github.com/shopify/hookshot/build/hookshot [New Thread 0x1903 of process 62333] Breakpoint 1, main.main () at /Users/burke/go/src/github.com/Shopify/hookshot/hookshot.go:87 87 func main() { (gdb) python print 1 1 (gdb) info goroutines Undefined info command: "goroutines". Try "help info". (gdb) goroutine 1 bt Undefined command: "goroutine". Try "help". My binary was built with "GOARCH=amd64 go build -o (target) (package)". |
Does anyone know what's currently going on with this? I'm still experiencing this problem, and was wondering if I'm the only one and/or if there are any work arounds. Alternatively, is there anything I can do to help? |
Also, when I try to manually load it I get an error. |
The text was updated successfully, but these errors were encountered: