I also have this. Only attach works for me:
http://www.winehq.org/pipermail/wine-devel/2012-July/096217.html
On 21 July 2012 23:46, John Edmonds <john.a.edmonds at gmail.com> wrote:
> I'm using 64-bit Ubuntu 12.04. I built and installed wine using the
> instructions from http://wiki.winehq.org/WineOn64bit. Whenever I try to
> debug an application using winedbg I get the following error message:
>>> /var/chroot/usr/local/bin/winedbg
>> ~/.wine/drive_c/windows/system32/notepad.exe
> err:module:LdrInitializeThunk Main exe initialization for
> L"C:\\windows\\system32\\notepad.exe" failed, status c0000022
> WineDbg starting on pid 0023
> couldn't load main module (2)
> Process of pid=0023 has terminated
>> This is the output when the same command is run with WINEDEBUG=warn+all:
>http://pastebin.com/RjErdbt8.>> My source tree is synced to git commit
> 020a68e1350eaf7293718732c1c9203e460709c6.
>> Has anyone had success debugging Windows applications on 64-bit Linux?
>> Thanks,
> John Edmonds
>>