7

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.

Community
  • 1
  • 1
Sriram
  • 10,298
  • 21
  • 83
  • 136

2 Answers2

5

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.

Jaglan Beta
  • 94
  • 1
  • 5
2

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

ks1322
  • 33,961
  • 14
  • 109
  • 164