* [ptxdist] How to keep DWARF debugging symbols for libunwind?
@ 2017-03-13 8:32 Andreas Glatz
2017-03-13 9:04 ` Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Glatz @ 2017-03-13 8:32 UTC (permalink / raw)
To: ptxdist
Hi
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 ?)
Kind regards,
Andreas
[1] https://wiki.linaro.org/KenWerner/Sandbox/libunwind
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] How to keep DWARF debugging symbols for libunwind?
2017-03-13 8:32 [ptxdist] How to keep DWARF debugging symbols for libunwind? Andreas Glatz
@ 2017-03-13 9:04 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2017-03-13 9:04 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-13 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13 8:32 [ptxdist] How to keep DWARF debugging symbols for libunwind? Andreas Glatz
2017-03-13 9:04 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox