[Wine] How to debug driver code when app run on wine?

James McKenzie jjmckenzie51 at earthlink.net
Sun Dec 26 10:41:06 CST 2010


On 12/26/10 9:04 AM, James McKenzie wrote:
> On 12/26/10 1:09 AM, jeffliu wrote:
>> jeffliu wrote:
>>> I am trying to debug opengl driver when windows Direct3D game runs 
>>> on wine, and encounter the problem
>>>
>>> Working on SUSE 11.2, and download the wine binary by YaST2, then:
>>>
>>> root>gdb wine
>>> gdb>  b driver_init
>>> gdb>  r game.exe
>>>
>>> then I can break the driver on driver_init, and i can see the driver 
>>> stack by bt, but I cannot see the driver source code, debugger can 
>>> not find the source code file, but if you use "s" to step by step, 
>>> debugger can find each function called, so it's strange.
>>>
>>> So am I doing right for debugging this case, I am new to wine, 
>>> thanks in advance
>>
>>
>> Or do I have to build wine from source code to debug this?
>>
> How about answering my question first?
>
> Wine usually is built with debugging code, but most programs are not.
>
Also, you should be using Wine's debugger, not the Linux debugger.  
winedbg might do what you want to do.

James McKenzie




More information about the wine-users mailing list