Separating Process and Debugger Debugmsg Output
Hallo, if one starts a program via wine with e.g. relay debug messages enabled, and the program crashes, these debugmessages get also enabled for the winedbg process and this clutters the relay log to get nearly unreadable. Until Alexandre's restructuring of the Command Line handling, I had "---debugmsg -all" as additional argument to the winedbg command line in system.reg, aedebug section. No wine spits on this argument. How do you solve this problem? Bye -- Uwe Bonnes bon(a)elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
How do you solve this problem? with today's CVS tree, not much I fear
my preferred solution would be to add some flags to CreateProcess to ask for not passing some Wine elements from the parent process to the child process (like -debug channels...) and use them in the case of launching a debugger (would for any debugger not only winedbg) another hackish solution, not appliable as it is : Index: win32/except.c =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/win32/except.c,v retrieving revision 1.52 diff -u -r1.52 except.c --- win32/except.c 10 Mar 2002 00:18:37 -0000 1.52 +++ win32/except.c 25 Apr 2002 18:45:06 -0000 @@ -274,6 +274,17 @@ } if (format) { + char buffer[1024]; + + if (GetEnvironmentVariableA( "WINEOPTIONS", buffer, sizeof(buffer) ) && buffer[0]) + { + strncat( buffer, " --debugmsg -all", sizeof(buffer) ); + } + else + strcpy( buffer, "--debugmsg -all" ); + SetEnvironmentVariableA( "WINEOPTIONS", buffer ); + + /* check if any option remains */ TRACE("Starting debugger (fmt=%s)\n", format); cmdline=HeapAlloc(GetProcessHeap(), 0, format_size+2*20); sprintf(cmdline, format, GetCurrentProcessId(), hEvent); A+
participants (2)
-
Eric Pouech -
Uwe Bonnes