* i-g-t + GDB
@ 2014-05-16 23:29 Michael H Nguyen
2014-05-17 0:30 ` Michael H Nguyen
0 siblings, 1 reply; 2+ messages in thread
From: Michael H Nguyen @ 2014-05-16 23:29 UTC (permalink / raw)
To: Intel Graphics Development
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: i-g-t + GDB
2014-05-16 23:29 i-g-t + GDB Michael H Nguyen
@ 2014-05-17 0:30 ` Michael H Nguyen
0 siblings, 0 replies; 2+ messages in thread
From: Michael H Nguyen @ 2014-05-17 0:30 UTC (permalink / raw)
To: intel-gfx
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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-17 0:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-16 23:29 i-g-t + GDB Michael H Nguyen
2014-05-17 0:30 ` Michael H Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox