警告:(内部错误:在 psymtab 中读取 pc 0x804a6b0,但在 symtab 中未读取。)g++

发布于 2024-09-03 15:39:28 字数 359 浏览 3 评论 0原文

我正在尝试使用 ddd 调试程序。当我尝试输入任何函数或在 main() 本身中输入时,我收到以下警告:

警告:(内部错误:在 psymtab 中读取 pc 0x804a6b0,但在 symtab 中未读取。)

每当我尝试使用 n 移动到另一条指令或输入或离开函数时,此警告就会闪烁。我试图在其他论坛上查找此问题,但没有确凿的答案。我尝试调试的代码运行到多个文件中,我不确定是否可以在此处发布整个代码。

我正在使用 g++ 版本:
g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)

非常欢迎任何有关此问题的帮助。

I am trying to debug a program using ddd. When I try to enter any function, or within main() itself, I get the following warning:

warning: (Internal error: pc 0x804a6b0 in read in psymtab, but not in symtab.)

This warning flashes whenever I try to move to another instruction using n or enter or leave a function. I have tried to look this up in other forums, but with no conclusive answer. The code I am trying to debug runs into several files and I am not sure if I can post the entire code here.

I am using g++ version:
g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)

Any help on this is most welcome.

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

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

发布评论

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

评论(2

栀子花开つ 2024-09-10 15:39:28

ks1322 正确地表明该问题可能是由于 gdb 中的错误造成的,该错误已得到纠正。我想相关的说明和补丁在下面的链接中有描述。

http://sourceware.org/ml/gdb-patches/2003-01 /msg00074.html

我可以确认,当我在 gdb 6.8 下的 C++ 应用程序中也遇到这个问题时,更新到 gdb 7.2 解决了它。

ks1322 is correct to suggest that the problem is likely to be due to a bug in gdb which has been corrected. I think the relevant description and patch are described in the following link.

http://sourceware.org/ml/gdb-patches/2003-01/msg00074.html

I can confirm that when I also encountered this problem in a C++ application under gdb 6.8, updating to gdb 7.2 resolved it.

怪我闹别瞎闹 2024-09-10 15:39:28

尝试使用更新版本的 gdb(7.0 或 7.1)

Try to use more recent version of gdb (7.0 or 7.1)

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