Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 14939E009BE; Wed, 15 Jul 2015 09:38:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message X-Greylist: delayed 67 seconds by postgrey-1.32 at yocto-www; Wed, 15 Jul 2015 09:38:57 PDT Received: from CAS.ALTICAST.COM (mail.alticast.com [210.223.111.12]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 12EF8E00978 for ; Wed, 15 Jul 2015 09:38:57 -0700 (PDT) Received: from MDBA.ALTICAST.COM (10.20.1.13) by MDBA.ALTICAST.COM (10.20.1.13) with Microsoft SMTP Server (TLS) id 15.0.847.32; Thu, 16 Jul 2015 01:36:57 +0900 Received: from MDBA.ALTICAST.COM ([::1]) by MDBA.ALTICAST.COM ([fe80::a120:603e:ce7f:b63a%22]) with mapi id 15.00.0847.030; Thu, 16 Jul 2015 01:36:39 +0900 From: Dave Kimble To: "yocto@yoctoproject.org" Thread-Topic: using gdb with externalsrc Thread-Index: AQHQvow+Np9lhVRZQU2DpV3k5r/M/Z3ct0rS Date: Wed, 15 Jul 2015 16:36:39 +0000 Message-ID: <18f7ce035aef414a9f831b93f7891401@MDBA.ALTICAST.COM> References: <72517437afa14ef49b98771c29280999@MDBA.ALTICAST.COM> In-Reply-To: <72517437afa14ef49b98771c29280999@MDBA.ALTICAST.COM> Accept-Language: en-US, ko-KR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [107.1.177.180] MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 15 Jul 2015 10:02:34 -0700 Subject: using gdb with externalsrc X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 16:38:59 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_18f7ce035aef414a9f831b93f7891401MDBAALTICASTCOM_" --_000_18f7ce035aef414a9f831b93f7891401MDBAALTICASTCOM_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable We've got a component of an existing Yocto project under active development= that we'd like to debug with gdb.? We've added these features to get gdb and the debug symbol packages into th= e image: EXTRA_IMAGE_FEATURES =3D "debug-tweaks tools-debug" IMAGE_FEATURES =3D "ssh-server-openssh dbg-pkgs" We've added these variables to build the component under active development= from the local code: INHERIT +=3D "externalsrc" EXTERNALSRC_pn-[component] =3D "[local source code path]/[component]" All seems well, as the build succeeds and the component in the image reflec= ts local code changes. However, the component source code never makes it in= to the image, so it can't be referenced in gdb. Is there a secret to using dbg-pkgs and EXTERNALSRC together?? --_000_18f7ce035aef414a9f831b93f7891401MDBAALTICASTCOM_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
We've got a component of an existing Yocto project under active development= that we'd like to debug with gdb.​

We’ve added these features to get gdb and the debug s= ymbol packages into the image:

EXTRA_IMAGE_FEATURES =3D "debug-tweaks tools-debug&quo= t;

IMAGE_FEATURES =3D "ssh-server-openssh dbg-pkgs"<= br>


We’ve added these variables to build the component under active devel= opment from the local code:
INHERIT +=3D "externalsrc"
EXTERNALSRC_pn-[component] =3D “[local source code path]/[component]&= #8221;

All seems well, as the build succeeds and the component in the image reflec= ts local code changes. However, the component source code never makes it in= to the image, so it can’t be referenced in gdb.

Is there a secret to using dbg-pkgs and EXTERNALSRC together?​


--_000_18f7ce035aef414a9f831b93f7891401MDBAALTICASTCOM_--