From: Pascal Bach <pascal.bach@siemens.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: Debugging using sysroots and GDB
Date: Fri, 4 Mar 2016 09:42:46 +0100 [thread overview]
Message-ID: <56D94A86.7080908@siemens.com> (raw)
In-Reply-To: <56CC6832.90506@siemens.com>
ping!
No comment on this topic?
Am 23.02.2016 um 15:09 schrieb Pascal Bach:
> Hi Everybody
>
> Currently debugging using sysroots seems to work as long as the work folder containing the original source is available.
> Once this work dir is gone the debugger is no longer able to find the source code. This is especially confusing if some packages are taken from sstate and others are built in the current projects, because for some libraries the sources can be found and for others not. It is hard at first to figure out the reason why one works and the other not.
>
> In order to make it easier to debug using sysroots I propose to modify the how the sysroots is built to do somethins similar to rootfs:
>
> 1. Changing the source reference in the debug symbols to point to the source under /usr/src/debug
> 2. Copy the sources into /usr/src/debug under sysroots similar to how it is done for a debug rootfs.
> 3. Document that the user needs to add the following to the .gdbinit to make it work:
> ```
> set sysroot /project/oe/build/tmp/sysroots/<target_sysrtoot>
> set substitute-path /usr/src/debug /project/oe/build/tmp/sysroots/<target_sysrtoot>/usr/src/debug
> ```
>
> This would also allow the sysroot to be relocatable as it is kind of standalone and everything required to debug is included.
>
> What do you think? Does this proposal make sense, or did I miss something and this is completly unnecessary and there is an easier way already working?
>
> Regards
> Pascal
next prev parent reply other threads:[~2016-03-04 8:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-23 14:09 Debugging using sysroots and GDB Pascal Bach
2016-03-04 8:42 ` Pascal Bach [this message]
2016-03-04 11:20 ` Richard Purdie
2016-03-04 14:06 ` Pascal Bach
2016-03-04 15:30 ` Richard Purdie
2016-03-08 8:53 ` Pascal Bach
2016-03-08 11:22 ` Khem Raj
2016-03-08 14:09 ` Pascal Bach
2016-03-08 10:01 ` Andreas Müller
2016-03-08 10:24 ` Burton, Ross
2016-03-08 14:06 ` Pascal Bach
2016-03-08 19:57 ` Andreas Müller
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=56D94A86.7080908@siemens.com \
--to=pascal.bach@siemens.com \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox