清理 GDB 内存转储的输出

发布于 01-16 22:03 字数 231 浏览 3 评论 0原文

我们丢失了一个配置文件,我们能够使用 gdb 内存转储恢复一些数据,但文件的许多重要部分都隐藏在内存噪音中。

有没有办法清理转储文件?

输出示例

在此输入图像描述

We lost a configuration file which we were able to recover some of the data with a gdb memory dump but many important parts of the file are buried in memory noise.

Is there a way to cleanup the dump files?

Example output

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

誰認得朕2025-01-23 22:03:21

strings 命令能够从文件中删除垃圾。

strings mem_7fbf71165000 > strings.txt

The strings command was able to remove the garbage from the file.

strings mem_7fbf71165000 > strings.txt
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文