[PATCH] D52862: DwarfDebug: Pick next location in case of missing location at block begin

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 11:43:01 PDT 2018


vsk added a comment.

In https://reviews.llvm.org/D52862#1255596, @MatzeB wrote:

> > Is it possible that your test harness is removing .dSYMs? .. ah, no, what's happening is that clang declines to add a dsymutil step when it's being used to link .o's into an executable.
>
> So I assume when linking .o files the debug information is still part of the executable afterwards. And running `dsymutil` is an optional step that a buildsystem can do to split up the dwarf data into a .dSYM...


That's how it works on most non-Apple platforms, I think. ld64 is different in that it doesn't copy any debug info into the final executable: it just embeds pointers to .o's in the mach-o header. Later, the debugger (or dsymutil) can find debug info for the program by chasing these pointers.


Repository:
  rL LLVM

https://reviews.llvm.org/D52862





More information about the llvm-commits mailing list