GNU gdb 188.8.131.5270623-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc64-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
Starting program: /root/psim.out
When it does run, I get messages regarding threads and all. The program uses pthreads and spawns four threads, two of which immediately call "spe_context_run()", but I don't think the debugger even gets there (there should be some output before it gets to that).
If I interrupt the debugger, I get the following:
Program received signal SIGINT, Interrupt.
0x000004000001a6c0 in ._dl_debug_state () from /lib64/ld64.so.1
#0 0x000004000001a6c0 in ._dl_debug_state () from /lib64/ld64.so.1
#1 0x00000400000081d0 in .dl_main () from /lib64/ld64.so.1
#2 0x0000040000022264 in ._dl_sysdep_start () from /lib64/ld64.so.1
#3 0x0000040000006ce4 in ._dl_start_final () from /lib64/ld64.so.1
#4 0x0000040000006fbc in ._dl_start () from /lib64/ld64.so.1
#5 0x00000400000054d0 in ._start () from /lib64/ld64.so.1
(gdb) info threads
I.e. the debugger is not in my executable and seem to hang somewhere in the loader. As I mentioned above, this does not happen all the time.
Any ideas or workarounds?