[PATCH] D67090: [llvm-objcopy][llvm-strip] Support --only-keep-debug

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 04:05:56 PDT 2019


labath added a comment.

In D67090#1659064 <https://reviews.llvm.org/D67090#1659064>, @MaskRay wrote:

> In D67090#1657187 <https://reviews.llvm.org/D67090#1657187>, @manojgupta wrote:
>
> > Thanks for working on it. Have you tested if Linux perf can symbolize the perf traces using the split debug files especially with large binaries?
> >
> > Meanwhile, I'll try the patch on Chrome OS to verify that gdb and perf still work.
>
>
> I've learned that @manojgupta actually has a different use case: symbolization without requiring access to the stripped binary.


I don't want to digress to much, but since you've mentioned this use case... The main problem I encountered when trying to debug something (with lldb) without the stripped binary was that the separate debug file does not contain the eh_frame section. This meant that lldb was unable to unwind past the first frame, or if it did, the backtrace was largely inaccurate. If you're doing unwinding in this scenario, I'd be curious to hear how you get around this problem.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67090/new/

https://reviews.llvm.org/D67090





More information about the llvm-commits mailing list