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

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

问题描述

是否可以获取 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天全站免登陆