From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id AAC6C6072C for ; Tue, 19 Apr 2016 01:46:10 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u3J1k6rV023442 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 18 Apr 2016 18:46:07 -0700 (PDT) Received: from [128.224.162.159] (128.224.162.159) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Mon, 18 Apr 2016 18:46:06 -0700 To: "Burton, Ross" References: <62a9bef209d903048c1095d90387384115eb6fd5.1459147231.git.hongxu.jia@windriver.com> <571496CC.8010607@windriver.com> <57149B89.2090607@windriver.com> <5714A30A.9000204@windriver.com> <5714AA1E.9020505@windriver.com> <5714DC35.7040206@windriver.com> From: Hongxu Jia Message-ID: <57158DDA.5090003@windriver.com> Date: Tue, 19 Apr 2016 09:46:02 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH 01/17] conf/bitbake.conf package.bbclass: fix dbg package not contain sources while -fdebug-prefix-map used X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 01:46:10 -0000 Content-Type: multipart/alternative; boundary="------------020005020700030703020803" --------------020005020700030703020803 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 04/18/2016 09:55 PM, Burton, Ross wrote: > > On 18 April 2016 at 14:08, Hongxu Jia > wrote: > > If sysroot is required, override DEBUG_FLAGS to remove > -fdebug-prefix-map > > > We should probably get this in the release notes, as many people do > indeed want remote debug to work. > > Can you tell gdb the base path to use when looking for symbols? I've > not done remote GDB for some time but wouldn't "set substitute-path / > //my/sysroot/" work? Or maybe /usr /my/sysroot/usr? > > If gdb can't be told then instead of having to replace all of > DEBUG_FLAGS it would be neat if the prefix mapping variables where in > another variable that could just be unset. > OK, I will try to work on GDB to let remote debug to work. //Hongxu > Ross --------------020005020700030703020803 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
On 04/18/2016 09:55 PM, Burton, Ross wrote:

On 18 April 2016 at 14:08, Hongxu Jia <hongxu.jia@windriver.com> wrote:
If sysroot is required, override DEBUG_FLAGS to remove -fdebug-prefix-map

We should probably get this in the release notes, as many people do indeed want remote debug to work.

Can you tell gdb the base path to use when looking for symbols?  I've not done remote GDB for some time but wouldn't "set substitute-path / //my/sysroot/" work?  Or maybe /usr /my/sysroot/usr?

If gdb can't be told then instead of having to replace all of DEBUG_FLAGS it would be neat if the prefix mapping variables where in another variable that could just be unset.


OK, I will try to work on GDB to let remote debug to work.

//Hongxu

Ross

--------------020005020700030703020803--