[Mesa-dev] Debugging into Mesa Driver
roshan chaudhari
rgc184 at gmail.com
Wed Jun 4 21:46:38 PDT 2014
Thanks for reply.
I have added "CFLAGS='-Og -ggdb3' CXXFLAGS='-Og -ggdb3'" into configure
file and ran
"./configure --enable-debug" ; make; make install
but still it did not step into driver.
On Wed, Jun 4, 2014 at 1:09 PM, Ian Romanick <idr at freedesktop.org> wrote:
> On 06/04/2014 11:14 AM, roshan chaudhari wrote:
> > Hello,
> > I just cloned the mesa driver from git repository. I am trying
> > to debug the opengl application with mesa driver. I am not sure which
> > flag to enable for debugging and where, I built a driver with
> > -enable-debug in Makefile and added --DEBUG in CFLAGS in Makefile but
> > still when I try to step into driver code it does not allow me. I am
> > doing it with gdb in ubuntu.
>
> Modifying the CFLAGS in the Makefile is likely to cause problems.
> Instead, try
>
> CFLAGS='-Og -ggdb3' CXXFLAGS='-Og -ggdb3' ./configure --enable-debug <your
> other configure options>
>
> If your version of GCC is too old, you will need to use -O0 instead
> of -Og.
>
> That should be sufficient. You can verify this by doing
>
> gdb $(which glxgears)
>
> Then, at the gdb prompt,
>
> break _mesa_Clear
>
> It will ask
>
> Function "_mesa_Clear" not defined.
> Make breakpoint pending on future shared library load? (y or [n])
>
> Answer 'y'. Then,
>
> run
>
> If it stops in _mesa_Clear, you're good to go.
>
> > Can anyone please help me with that?
> >
> > --
> >
> > Thanks,
> > Roshan
> >
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140604/2fc582fb/attachment.html>
More information about the mesa-dev
mailing list