Created
May 2, 2012 16:47
-
-
Save awreece/2578123 to your computer and use it in GitHub Desktop.
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 | |
Reading symbols from /tmp/temp...done. | |
Loading Go Runtime support. | |
(gdb) b main.main | |
Breakpoint 1 at 0x8048c00: file /tmp/temp.go, line 2. | |
(gdb) r | |
Starting program: /tmp/temp | |
[New LWP 6919] | |
[Switching to LWP 6919] | |
Breakpoint 1, main.main () at /tmp/temp.go:2 | |
2 func main() { | |
(gdb) x/a $esp | |
0xb7f8ffbc: 0x804feff <runtime.main+140> | |
(gdb) info goroutines | |
* 1 running runtime.gosched | |
* 2 syscall runtime.entersyscall | |
(gdb) goroutine 1 x/a $esp | |
0xb7f8ffb4: 0x8050d70 <schedule> | |
(gdb) goroutine 2 x/a $esp | |
0xb7f90f40: 0x1850c110 | |
(gdb) ^Z | |
[1]+ Stopped gdb temp | |
areece@areece-laptop:/tmp$ ps | |
PID TTY TIME CMD | |
5491 pts/2 00:00:00 bash | |
6914 pts/2 00:00:00 gdb | |
6916 pts/2 00:00:00 temp | |
6921 pts/2 00:00:00 ps | |
areece@areece-laptop:/tmp$ cat /proc/6916/maps | |
08048000-0806b000 r-xp 00000000 08:07 2505566 /tmp/temp | |
0806b000-0806d000 rw-p 00023000 08:07 2505566 /tmp/temp | |
0806d000-0847e000 rw-p 00000000 00:00 0 [heap] | |
08500000-184e0000 ---p 00000000 00:00 0 | |
184e0000-18600000 rwxp 00000000 00:00 0 | |
18600000-38500000 ---p 00000000 00:00 0 | |
b7f8f000-b7fff000 rwxp 00000000 00:00 0 | |
b7fff000-b8000000 r-xp 00000000 00:00 0 [vdso] | |
bffdf000-c0000000 rw-p 00000000 00:00 0 [stack] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment