How to debug into the linux library?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
cikka
Level 1
Level 1
Posts: 5
Joined: Tue Jul 15, 2008 9:02 pm

How to debug into the linux library?

Post by cikka »

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!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How to debug into the linux library?

Post by vitamin »

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.
Locked