Debugging winedbg

Eric Pouech pouech-eric at wanadoo.fr
Sat Mar 29 01:58:14 CST 2003


Ulrich Spoerlein wrote:
> Can anyone please explain this to me?
every module (in the Wine sense) is create with a .init section. the 
code in this section is executed as soon as the module is loader (by the 
ELF loader). But the code in this section expects a bit of Wine 
environment to be already present (basically the wine executable)

with preloading the .exe.so file, this code gets executed with the wine 
executable being loaded

> And what would be the easiest way to break into gdb on DEBUG_MainLoop?
add a breakpoint instruction at the start of DEBUG_MainLoop code
__asm__("int 3"); would do

A+

-- 
Eric Pouech




More information about the wine-devel mailing list