Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 461
Sriram Avatar asked Jun 01 '10 06:06

Sriram


2 Answers

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.

like image 140
Jaglan Beta Avatar answered Sep 30 '22 16:09

Jaglan Beta


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

like image 26
ks1322 Avatar answered Sep 30 '22 16:09

ks1322