Is it possible to get a core dump of a running process and its symbol table?

后端 未结 3 1906
暖寄归人
暖寄归人 2020-12-04 08:02

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

相关标签:
3条回答
  • 2020-12-04 08:37

    Or run gcore $(pidof processname).

    This has the benefit (over running gdb and issuing commands to the CLI) that you attach and detach in the shortest possible time.

    0 讨论(0)
  • 2020-12-04 09:02

    You can used generate-core-file command in gdb to generate core dump of running process.

    0 讨论(0)
  • 2020-12-04 09:03
    $ gdb --pid=26426
    (gdb) gcore
    Saved corefile core.26426
    (gdb) detach
    
    0 讨论(0)
提交回复
热议问题