You'd have to expand it either by hand or by using gcc -E, insert lots of line breaks and then recompile.
I know nothing of how the VC++ debugger works, but there got to be some way of switching to another thread to examine its stack. As for the lock, you could either call gdb_backtraces if it's possible to do that, or else you have to look at the swapped flag in the thread structs. gdb_next_thread_state in threads.c shows how to go through them.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-09-20 17:16: Subject: Win32 SMP
I could? How do you expand a macro in VC++s debugger?
How do I know how many threads are running and which holds the lock?
/ Peter Bortas