Can't debug mingw compiled program
Vitaly Lipatov
lav at etersoft.ru
Tue Nov 2 10:07:20 CST 2004
During program debugging I have some trouble with winedbg use.
Simple test program with error on write access to constant:
#include <string.h>
int main(int argc, char **argv)
{
char * str = "test";
_strupr(str);
return (0);
}
I try debug it:
$ winedbg 3.exe
Can't attach process 3: error 87
WineDbg starting on pid 0xa
In 32 bit mode.
Wine-dbg>c
First chance exception: page fault on write access to 0x00404000 in 32-bit code (0x00935d20).
...
Backtrace:
=>1 0x00935d20 _memccpy+0x595 in msvcrt (0x0090fec8)
2 0x00401330wine-kthread: stabs.c:246: stabs_find_ref: Assertion `filenr <= cu_include_stk_idx' failed.
I see some bug in stubs handling.
Versions:
i386-mingw32msvc-gcc-3.3.3
wine from last CVS
Any suggestions?
--
Vitaly Lipatov, ALT Linux Team
Russia, Saint-Petersburg, www.etersoft.ru
More information about the wine-devel
mailing list