Ados

a fullstack game worker

0%

GDB 调试 Core文件

GDB Debug

Open core file

1
> gdb <Program Excutable> <core file>

Find Stack

1
(gdb) where
1
2
3
4
5
6
7
8
9
command class: stack

backtrace -- 打印所有堆栈帧
bt -- backtrace的简写
down -- Select and print stack frame called by this one
frame -- Select and print a stack frame
return -- Make selected stack frame return to its caller
select-frame -- Select a stack frame without printing anything
up -- Select and print stack frame that called this one

Show threads

1
(gdb) info threads                 

Use thread

1
(gdb) thread 1

Show all usable commands

1
(gdb) help all