Code: Select all
...
0xb77bb422 in __kernel_vsyscall ()
(gdb) bt
#0 0xb77bb422 in __kernel_vsyscall ()
#1 0xb74da036 in nanosleep () from /lib/i686/cmov/libc.so.6
#2 0xb7756748 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#3 0xb7702e6b in SDL_WaitEvent () from /usr/lib/libSDL-1.2.so.0
#4 0x0804e377 in main (argc=1, argv=0xbfa268d4) at src/main.c:665
Code: Select all
(gdb) up 1
#1 0xb74da036 in nanosleep () from /lib/i686/cmov/libc.so.6
(gdb) args
Undefined command: "args". Try "help".
(gdb) help
...
(gdb) help stack
Examining the stack.
...
(gdb) up
#2 0xb7756748 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
(gdb) bt
#0 0xb77bb422 in __kernel_vsyscall ()
#1 0xb74da036 in nanosleep () from /lib/i686/cmov/libc.so.6
#2 0xb7756748 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#3 0xb7702e6b in SDL_WaitEvent () from /usr/lib/libSDL-1.2.so.0
#4 0x0804e377 in main (argc=1, argv=0xbfa268d4) at src/main.c:665
(gdb) down
#1 0xb74da036 in nanosleep () from /lib/i686/cmov/libc.so.6
(gdb) return
Make selected stack frame return now? (y or n) y
#0 0xb7756748 in SDL_Delay ()
from /usr/lib/libSDL-1.2.so.0
Code: Select all
(gdb) where
#0 0xb7756748 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#1 0xb7702e6b in SDL_WaitEvent () from /usr/lib/libSDL-1.2.so.0
#2 0x0804e377 in main (argc=1, argv=0xbfa268d4) at src/main.c:665
(gdb) return
Make selected stack frame return now? (y or n) y
#0 0xb7702e6b in SDL_WaitEvent
() from /usr/lib/libSDL-1.2.so.0
Code: Select all
(gdb) bt
#0 0xb7702e6b in SDL_WaitEvent () from /usr/lib/libSDL-1.2.so.0
#1 0x0804e377 in main (argc=1, argv=0xbfa268d4) at src/main.c:665
(gdb) return
Make selected stack frame return now? (y or n) y
#0 0x0804e377 in main (argc=1,
argv=0xbfa268d4) at src/main.c:665
665 if (!isActive || tickPaused) SDL_WaitEvent(NULL);
Code: Select all
(gdb) n
Single stepping until exit from function __kernel_vsyscall,
which has no line number information.
[Switching to Thread 0xb6e156c0 (LWP 23764)]
668 while (SDL_PollEvent(&event))
(gdb) cont
Continuing.