From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to keep DWARF debugging symbols for libunwind?
Date: Mon, 13 Mar 2017 10:04:30 +0100 [thread overview]
Message-ID: <20170313090430.lcakbbgqqmnnip2a@pengutronix.de> (raw)
In-Reply-To: <CAKJ14Ndg93erxEpnk_yKADXMDG1VnNw-9grmdP8q7oZLw0PKmg@mail.gmail.com>
Hi,
On Mon, Mar 13, 2017 at 08:32:00AM +0000, Andreas Glatz wrote:
> I'm using libunwind [1] on i.MX6 together with my application to
> generate proper backtraces. I found that compiling my app with
> debugging symbols (-g) and then preloading libunwind with
> UNW_ARM_METHOD_DWARF gives quite meaningful backtraces.
>
> However, after flashing the target I cannot get backtraces anymore as
> ptxdist seems to strip the DWARF debugging symbols. I was wondering if
> there is a way to instruct ptxdist to retain the debugging symbols for
> a specific application? (Or if I should be looking e.g. into
> UNW_ARM_METHOD_EXIDX ?)
There is currently no full solution for this. I use nfsroot, and we keep
the debug symbols there, so it's not a problem in my use-cases.
You can instruct ptxdist not to strip individual files in the install_*
commands in targetinstall, but that will break, when the stack enters a
different library.
I have some kind debug packages on my todo list for ptxdist and a vague
idea on how to do this but I currently don't have the time to implement
this.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2017-03-13 9:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-13 8:32 Andreas Glatz
2017-03-13 9:04 ` Michael Olbrich [this message]
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=20170313090430.lcakbbgqqmnnip2a@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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