gdb - 为远程目标生成核心文件?
我正在使用适用于 ARM 的 Codesourcery 版本的 gdb(即 arm-none-eabi-gdb)进行调试,并尝试生成核心文件以供以后检查。 OpenOCD 是我的 GDB 目标。当我运行“gcore”或“generate-core-file”时,所有 gdb 都会告诉我“无法创建 corefile”。有什么建议吗?一般来说,是否可以对远程目标进行核心转储?
I'm debugging with the Codesourcery version of gdb for ARM (i.e. arm-none-eabi-gdb) and attempting to generate a corefile for later inspection. OpenOCD is my GDB target. All gdb tells me when I run 'gcore' or 'generate-core-file' is "Can't create corefile". Any suggestions? In general is it possible to do a core dump with a remote target?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎还不可能,但 GDB 邮件列表上有一些有希望的讨论
此处和此处 org/ml/gdb-patches/2011-12/msg00012.html" rel="noreferrer">此处。作为替代方案,您也许可以尝试以下方法?
在其中适当填写 start_addr 和 end_addr 。您必须手动保存寄存器。
It doesn't seem possible yet, but there is some promising discussion on the GDB mailing list
here and here. As an alternative maybe you could try the following?
where you fill in start_addr and end_addr appropriately. You'd have to save registers by hand.