From: Julian S. <js...@ac...> - 2009-05-21 23:33:50
|
> > Yes, exactly. In the debugger I only see one thread, so I can't > > inspect my other threads to see what is going on. > > [snip] > > Use `info threads', and `thread <num>' to switch. Am not 100% sure, but, I suspect that won't work. There's some deeply nasty magic involved, in which we have to copy the register state of the simulated CPU into the real CPU registers, before starting GDB. If that isn't done, then GDB (correctly) shows the stacks etc as being inside Valgrind itself and not inside the program that was running on Valgrind. So (if memory serves right), that's only done for the current thread and not for all of them. So I imagine that switching threads will yield stack tracebacks inside V's code, or in code generated by the JIT. J |