GDB Internal error with qnx6.3-0002

I’m getting this error whenever I attempt to debug a .so using Momentics. Any idea what would cause this? The file I’m trying to debug has been compiled in debug and I’m using “Attach to Process w/QConn”.

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


This is a shot-in-the-dark, since I don’t know exactly what the error means, but if it means what I think it means, then it sounds like the process your attaching to has a “program counter” value that “points” outside of the range of code symbol space in the sym file.

This could mean that (a) the code is seriously broken, and it is executing data, or (b) the executable you are attaching to does not match the sym file you are loading into gdb.



What exactly is QNX 6.3-0002?

From the source this error occurs when the PC should lie within a particular symbol file (according to the psymtab) but cannot be found in the symtab.

The address is in libc (for SP2 it’s in the dynamic linker’s lookup() function)

I suspect that you might have a mismatch in libc version between your target and your host development machine.