i-g-t + GDB
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 ?
Thanks,
Mike
Quoted 4 lines · Michael H Nguyen
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
Makefileinside the igt and libdrm projects? Maybe pass an additional parameter toautogen.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"
Quoted 8 lines
Thanks,
Mike_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx