Have you tried the current GDB sources? I'm not sure, but I think
people have been working on the thread handling since 5.0.
I have now installed gdb 5.0. To my pleasant surprise, name mangling, at
least against gcc 2.95 works perfect. Sweet! Now the problem: threading
works worse than in v4. I've tried starting the app from within gdb and
it crashes with a message that will follow shortly. I have also tried to
attach to the process while it is running, and although this allows me
to get (a bit) further, I still crash with the same error message. Here
it is: