Created
May 1, 2012 16:31
-
-
Save awreece/2569437 to your computer and use it in GitHub Desktop.
Print Stack in main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
areece@areece-laptop:/tmp$ gdb temp | |
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 | |
Copyright (C) 2011 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 "i686-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://bugs.launchpad.net/gdb-linaro/>... | |
Reading symbols from /tmp/temp...done. | |
Loading Go Runtime support. | |
(gdb) b main.main | |
Breakpoint 1 at 0x8048c17: file /tmp/temp.go, line 6. | |
(gdb) r | |
Starting program: /tmp/temp | |
[New LWP 5847] | |
[Switching to LWP 5847] | |
Breakpoint 1, 0x08048c17 in main.main () at /tmp/temp.go:6 | |
6 /tmp/temp.go: No such file or directory. | |
in /tmp/temp.go | |
(gdb) x/a $esp | |
0xb7f8ffbc: 0x8052295 <runtime.main+140> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment