Under linux GDB debugger

1. gdb files needed, depending on the use of appropriate gdb the device chip, for example, arm-hisiv200-linux-gdb, gdb and the like

2. Copy the symbol table to the device, e.g. core.sym

3.ps viewing thread, pstree -p XXX View child thread, find the need to debug thread

4.gdb mount thread: gdb -p 1236

The import symbol table: symbol-file core.sym

6. a breakpoint, then continue, directly or c

7. operating a run to the location you want to stop

8.bt view the call stack, p view variable

Guess you like

Origin blog.csdn.net/xuhao07/article/details/94578729
Recommended