Posted on 2011-06-14 21:16
S.l.e!ep.¢% 閱讀(739)
評論(0) 編輯 收藏 引用 所屬分類:
Unix
用gdb在正常狀態下生成coredump |
|
來源: ChinaUnix博客 日期: 2008.12.21 16:07 (共有0條評論) 我要評論 |
? |
Is it possible to get a core dump of a running process and it’s symbol table? Is it possible to get gdb or use some other tools to create a core dump of a running process and it's symbol table? It would be great if there's a way to do this without terminating the process. If this is possible, what commands would you use???(I'm trying to do this on a Linux box) Answer $ ulimit -c unlimited $ gdb --pid=26426 (gdb) gcore Saved corefile core.26426 (gdb) detatch
|