是否可以获得运行进程的核心转储及其符号表? [英] Is it possible to get a core dump of a running process and its symbol table?

查看:300
本文介绍了是否可以获得运行进程的核心转储及其符号表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取gdb或使用其他工具来创建正在运行的进程的核心转储,它是符号表?如果有办法在没有终止这个过程的情况下,这将是巨大的。

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.

如果可以的话,你会使用什么命令? (我试图在一个Linux盒子上这样做)

If this is possible, what commands would you use? (I'm trying to do this on a Linux box)

推荐答案


$ gdb --pid=26426
(gdb) gcore
Saved corefile core.26426
(gdb) detach

这篇关于是否可以获得运行进程的核心转储及其符号表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆