Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
Actually, to enable attach, I had to make ptrace more permissive: https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace_Protection by doing "echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope" To run it under eclipse I had to choose Traditional Attach to process instead of DSF. On

Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
Attach works. Thanks!

Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
So, you didn't try to build wine? Installed wine also works for me.

Re: Debugging wine/windows applications

2012-07-07 Thread Marcus Meissner
On Sat, Jul 07, 2012 at 01:25:12PM +0300, John Yani wrote: > I tried "WINELOADER=./wine winedbg --gdb notepad" > > And its output is the same as "./wine winedbg --gdb notepad" Well, i have a installed wine... but doing this there: wine winedbg.exe --gdb notepad.exe 0042:0043: create process 'C

Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
Maybe it's because I'm building on chrooted Ubuntu x32 and run on Ubuntu x64?

Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
I tried "WINELOADER=./wine winedbg --gdb notepad" And its output is the same as "./wine winedbg --gdb notepad"

Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
Unfortunately, it doesn't work: ./wine winedbg --gdb notepad.exe err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\notepad.exe" failed, status c022 0023:0024: create process ''/0x1106c0 @0x7ebe233c (0<0>) fixme:dbghelp:EnumerateLoadedModulesW64 If this happens,

Re: Debugging wine/windows applications

2012-07-07 Thread Marcus Meissner
On Sat, Jul 07, 2012 at 01:11:42PM +0300, John Yani wrote: > Did you mean './wine winedbg --gdb notepad'? Because I can't find winedbg > binary. This would be the same. There usually is a "winedbg" wrapper installed that does the same, but for all purposes its the same thing. Ciao, Marcus

Re: Debugging wine/windows applications

2012-07-07 Thread John Yani
Did you mean './wine winedbg --gdb notepad'? Because I can't find winedbg binary.

Re: Debugging wine/windows applications

2012-07-06 Thread Marcus Meissner
On Sat, Jul 07, 2012 at 12:17:00AM +0300, John Yani wrote: > I tried to run wine under gdb and failed. Using multiprocess gdb I > endup with weird trace: > > 0xf7ffd430 > 0x7bc846f9 > 0x7bc8480f > 0x7bc84855 > 0x7bc42a94 > 0x7bc433b1 > 0x7b8772f7 > 0x7ebab89b > 0x7b

Debugging wine/windows applications

2012-07-06 Thread John Yani
I tried to run wine under gdb and failed. Using multiprocess gdb I endup with weird trace: 0xf7ffd430 0x7bc846f9 0x7bc8480f 0x7bc84855 0x7bc42a94 0x7bc433b1 0x7b8772f7 0x7ebab89b 0x7bc80014 0x7bc8005d Where 0x7** addresses are not co