From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from muon.cran.org.uk (muon.bluestop.org [74.50.51.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7AA181A1E89 for ; Mon, 3 Oct 2016 09:11:10 -0700 (PDT) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id E6CE494432; Mon, 3 Oct 2016 16:11:09 +0000 (UTC) Received: from muon.cran.org.uk ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kIVsht0nmlOY; Mon, 3 Oct 2016 16:11:09 +0000 (UTC) Received: from [10.0.10.17] (c-67-171-116-44.hsd1.ut.comcast.net [67.171.116.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Mon, 3 Oct 2016 16:11:09 +0000 (UTC) To: Yonghong Zhu , edk2-devel@lists.01.org References: <1475221478-2252-1-git-send-email-yonghong.zhu@intel.com> Cc: Laszlo Ersek , Liming Gao From: Bruce Cran Message-ID: <90d6e612-54d5-bef5-2f49-e0bd3f90896e@cran.org.uk> Date: Mon, 3 Oct 2016 10:11:09 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1475221478-2252-1-git-send-email-yonghong.zhu@intel.com> Subject: Re: [Patch] BaseTools: support the NOOPT target with the GCC tool chains X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2016 16:11:10 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 9/30/2016 1:44 AM, Yonghong Zhu wrote: > Update the tools_def.template to add NOOPT support with GCC tool chains. In the section "GCC Common" there's DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG = A NOOPT line similar to the DEBUG one needs to be added for debugging to work. I've verified that by adding it the reload-uefi command runs and single-stepping works. -- Bruce