We are having trouble to debug C/C++ program core files (the program was built by GCC 4.6.1), even with the debug version, though file command showed debugging information and symbols are available.
The symbol won't be human-readable in gdb at all even provisioned with correct debug executable.Any one can cast any light over this?
BTW, the core file can't analyzed by "mdb" or "adb" either. Each time adb is launched, a new core would be generated.
Debugging with gdb generates errors like:
warning: Cannot initialize thread debugging library: Debugger service failed
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
Also tried building gdb from source, no luck. Added "LD_PRELOAD=/usr/lib/libpthread.so.1" before launching gdb didn't work either ( actually the program was linked with -lpthread).