Debugging code

Debugging code
gdb:
cd autofp(branch)
Makefile
CFLAGS          = -g
make dbg
cd rda
make

ps -au
gdb /icd/chnrd_t2b_001/chn03/svp/klarke/10.1.usr1/tools.lnx86/fe/bin/64bit/encounter 29759

设置断点
1.break 文件-行数
2.break 函数名

Program received signal SIGSEGV, Segmentation fault.
0x0000000007cd5287 in syMPoolAllocArray ()
(gdb) p mempool
$1 = 0

encounter -64 -debugger -opt
top(just as ps)

pstack:
pstack "processes ID"


你可能感兴趣的:(Debugging code)