Debugging with winedbg

Questions about Wine on Linux
Locked
Progman
Newbie
Newbie
Posts: 2
Joined: Wed Oct 02, 2019 7:48 am

Debugging with winedbg

Post by Progman »

Hi!

I am using MinGW (Gentoo 9.1.0-r1 p1.1) 9.1.0 to compile and link a Windows executable on Linux, like so

compilation
i686-w64-mingw32-g++ -g -DDEBUG -DUNICODE -D_UNICODE -D__STDC_WANT_LIB_EXT1__ -std=c++11 -Wall -I. -c -o main.o main.cpp

linking
i686-w64-mingw32-g++ -o program.exe -g -DDEBUG -DUNICODE -D_UNICODE -D__STDC_WANT_LIB_EXT1__ -std=c++11 -Wall main.o -static -mwindows -municode -lws2_32 -lgdi32 -lcomctl32 -lcomdlg32

The application is built with debug info, and is not stripped.

I am running the app flawlessly with wine-4.0.1

But when I try to debug the app, I invoke it this way
winedbg --gdb --no-start program.exe

0025:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0025:fixme:process:SetProcessDEPPolicy (3): stub
0025:fixme:process:GetProcessMitigationPolicy (0xffffffff, 6, 0x10bfc74, 4): stub
0025:fixme:process:SetProcessMitigationPolicy (6, 0x10bfc74, 4): stub
0025:fixme:ole:CoInitializeSecurity ((nil),-1,(nil),(nil),0,3,(nil),0,(nil)) - stub!
0026:fixme:ver:GetCurrentPackageId (0x11cfe9c (nil)): stub
0025:fixme:win:RegisterPowerSettingNotification (0x1d39b8,{6fe69556-704a-47a0-8f24-c28d936fda47},1): stub
0031:fixme:sync:SetWaitableTimerEx (0xf0, 0x1f9fc2c, 0, (nil), (nil), (nil), 32) semi-stub
003d:003e: create process ''/0x1109a0 @0x401480 (32491520<42579>)
003d:003e: create thread I @0x401480
but after the preceding has been output to the console, nothing happens.

I'm surely doing something wrong, can someone point me in the right direction?
I really would love to use DDD to debug the app, that is the end-goal

Thank you for taking the time to read this
Locked