http://bugs.winehq.org/show_bug.cgi?id=36491
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello Nikolay,
--- quote --- Sure, how to do that? I mean I'll need to 'attach' and 'bt', so I need to see winedbg output same time it needs to be logged. It might be basic shell usage question but still, I don't know how to redirect it that way. --- quote ---
there is no need to manually attach to a specific process. You can instruct 'winedbg' to backtrace every thread in every process using 'bt all'. There is a limitation though, this doesn't work for processes that are under control of another debugger (protection/DRM stuff).
The following command line should automate the task of dumping everything:
--- snip --- $ echo -e "info process\n info thread\n bt all\n" | winedbg &> log.txt --- snip ---
Regards