<div dir="ltr">Thanks a lot for your help.!<div><br></div><div>CFLAGS='-O0 -ggdb3' CXXFLAGS='-O0 -ggdb3' ./autogen.sh --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --with-gallium-drivers=svga --with-dri-drivers= --enable-xa --disable-dri3; make; <br>
</div><div><br></div><div>did the trick.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 5, 2014 at 9:01 AM, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 06/04/2014 09:46 PM, roshan chaudhari wrote:<br>
> Thanks for reply.<br>
><br>
> I have added "CFLAGS='-Og -ggdb3' CXXFLAGS='-Og -ggdb3'" into configure<br>
> file and ran<br>
> "./configure --enable-debug" ; make; make install<br>
><br>
> but still it did not step into driver.<br>
<br>
</div>Are you sure it's using the driver you built instead of the system<br>
installed driver?<br>
<br>
    LIBGL_DEBUG=verbose glxgears<br>
<br>
will give some information about the driver being used (see below).  If<br>
that doesn't match the driver installed, you'll need to use<br>
LD_LIBRARY_PATH and possibly LIBGL_DRIVERS_PATH to get the right one.<br>
<br>
libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so<br>
libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so<br>
libGL: Can't open configuration file /home/idr/.drirc: No such file or directory.<br>
libGL: Can't open configuration file /home/idr/.drirc: No such file or directory.<br>
<div class=""><br>
> On Wed, Jun 4, 2014 at 1:09 PM, Ian Romanick <<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>>> wrote:<br>
><br>
>     On 06/04/2014 11:14 AM, roshan chaudhari wrote:<br>
>     > Hello,<br>
>     >         I just cloned the mesa driver from git repository. I am trying<br>
>     > to debug the opengl application with mesa driver. I am not sure which<br>
>     > flag to enable for debugging and where, I built a driver with<br>
>     > -enable-debug in Makefile and added --DEBUG in CFLAGS in Makefile but<br>
>     > still when I try to step into driver code it does not allow me. I am<br>
>     > doing it with gdb in ubuntu.<br>
><br>
>     Modifying the CFLAGS in the Makefile is likely to cause problems.<br>
>     Instead, try<br>
><br>
>     CFLAGS='-Og -ggdb3' CXXFLAGS='-Og -ggdb3' ./configure --enable-debug<br>
>     <your other configure options><br>
><br>
>     If your version of GCC is too old, you will need to use -O0 instead<br>
>     of -Og.<br>
><br>
>     That should be sufficient.  You can verify this by doing<br>
><br>
>         gdb $(which glxgears)<br>
><br>
>     Then, at the gdb prompt,<br>
><br>
>         break _mesa_Clear<br>
><br>
>     It will ask<br>
><br>
>         Function "_mesa_Clear" not defined.<br>
>         Make breakpoint pending on future shared library load? (y or [n])<br>
><br>
>     Answer 'y'.  Then,<br>
><br>
>         run<br>
><br>
>     If it stops in _mesa_Clear, you're good to go.<br>
><br>
>     > Can anyone please help me with that?<br>
>     ><br>
>     > --<br>
>     ><br>
>     > Thanks,<br>
>     > Roshan<br>
>     ><br>
>     > _______________________________________________<br>
>     > mesa-dev mailing list<br>
</div></div>>     > <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a> <mailto:<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>><br>
>     > <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
><br>
<br>
</blockquote></div><br></div>