[Intel-gfx] i-g-t + GDB

Michael H Nguyen michael.h.nguyen at intel.com
Sat May 17 02:30:55 CEST 2014


On 05/16/2014 04:29 PM, Michael H Nguyen wrote:
> Hi,
>
> I am trying to step through i-g-t & libdrm source w/ GDB but single 
> stepping seems erratic so I am guessing the build is optimized. Is 
> changing "CFLAGS = -g -O2" to "CFLAGS = -g -O0" the right thing to do? 
> If so, how can I do that globally one time versus touching every 
> Makefile inside the igt and libdrm projects? Maybe pass an additional 
> parameter to autogen.sh, I'm not sure ?
>
Figured it out. For anyone interested...

$ ./autogen.sh --prefix=<my prefix> CFLAGS="-g -O0"

CFLAGS gets passed to ./configure which generates the make files w/ 
"CFLAGS = -g -O0"

> Thanks,
> Mike
>
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx




More information about the Intel-gfx mailing list