You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mac OS X 10.9.4
What does 'go version' print?
go version go1.3.1 darwin/amd64 (via brew)
GNU gdb (GDB) 7.7.1 (via brew)
Copyright (C) 2014 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-darwin13.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>;.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>;.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) show configuration
This GDB was configured as follows:
configure --host=x86_64-apple-darwin13.3.0 --target=x86_64-apple-darwin13.3.0
--with-auto-load-dir=:${prefix}/share/auto-load
--with-auto-load-safe-path=:${prefix}/share/auto-load
--with-expat
--with-gdb-datadir=/usr/local/Cellar/gdb/7.7.1/share/gdb (relocatable)
--with-jit-reader-dir=/usr/local/Cellar/gdb/7.7.1/lib/gdb (relocatable)
--without-libunwind-ia64
--without-lzma
--with-python=/System/Library/Frameworks/Python.framework/Versions/2.7
--with-separate-debug-dir=/usr/local/Cellar/gdb/7.7.1/lib/debug (relocatable)
--with-zlib
--without-babeltrace
("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)
1. Build a sample http://play.golang.org/p/n2L68VzRen as a binary m (via go build m.go)
2. Run gdb m
3. Setup a new breakpoint at line 9
4. Run the executable
5. Try to view local variables via info locals
What happened?
(gdb) info locals
x = map[string]string<error reading variable: Cannot access memory at address 0x10>
z = []string = {<error reading variable: Cannot access memory at address 0x0>,
<error reading variable: Cannot access memory at address 0x15fb60>, "", "", "", ""}
y = []int
What should have happened instead?
I'd like to see something more readable :)
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
by ignatovs:
The text was updated successfully, but these errors were encountered: