[Wine] Re: How to debug into the linux library?

vitamin wineforum-user at winehq.org
Wed Jul 16 10:10:03 CDT 2008

cikka wrote:
> I'm a new user of wine.
> I want to debug into the linux OpenGL driver, but I found it is hard to set break point in the drivers. OpenGL driver is an .so file which run in Linux user space. 
> when I run an linux OpenGL app, I can easily set break point in the open gl driver and debug into it. 
> If I  run an D3D game via winedbg, which will also load linux OpenGL driver, but I can't break into the driver.
> I have  tried winedbg --gdb, also now work.
> Does any one know how to debug into the OpenGL driver? please Help!
> Thanks!

What exactly doesn't work? Wine delay-loads the libGL (as well as most other libraries) so you can't set the break point from the start. You need to set a break point somewhere in Wine after it initialized opengl. Then you should be able to set BRs in the libGL.

More information about the wine-users mailing list