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

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 06:49:21 PDT 2019


labath added a comment.

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

> @labath to confirm whether it works on lldb if the separate debug file (created by --only-keep-debug) has no program header.
>
> I played with some executable and it appears to work.


Given how separate debug file handling is implemented in lldb (we just fetch some well known sections from the file (.debug_***, .symtab) and completely ignore everything else), I have a strong belief that this will not cause any problems in lldb. Even if it did cause some problem somehow, it does not sound like it would be too much to ask for lldb to handle this situation (the main file should always have the program headers, and it should be the authoritative source about the in-memory layout of the file).


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