Re: i-g-t + GDB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux