From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael H Nguyen Subject: Re: i-g-t + GDB Date: Fri, 16 May 2014 17:30:55 -0700 Message-ID: <5376ADBF.9080309@intel.com> References: <53769F76.3030405@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 026B56E2BE for ; Fri, 16 May 2014 17:27:00 -0700 (PDT) In-Reply-To: <53769F76.3030405@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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= 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