From: Michael H Nguyen <michael.h.nguyen@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: i-g-t + GDB
Date: Fri, 16 May 2014 17:30:55 -0700 [thread overview]
Message-ID: <5376ADBF.9080309@intel.com> (raw)
In-Reply-To: <53769F76.3030405@intel.com>
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
prev parent reply other threads:[~2014-05-17 0:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-16 23:29 i-g-t + GDB Michael H Nguyen
2014-05-17 0:30 ` Michael H Nguyen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5376ADBF.9080309@intel.com \
--to=michael.h.nguyen@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.