[Lldb-commits] [PATCH] D55859: noexternal 2/2: symbols.enable-external-lookup=false on all hosts (not just OSX)

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 19 01:27:05 PST 2018

labath added a comment.

> I have regression tested it only on Fedora 29 x86_64. I see now it may regress OSX but I have no idea what really dsym is.

dsym is a apple-specific format for external storage of debug info. I think the closest standard equivalent would be a DWP bundle, but there some differences too (and dsym is much older).

> I do not have OSX available, is it accessible somewhere remotely for LLVM development (such as is GCC Compile Farm)?

Unfortunately, I don't think llvm has anything like that, though I think it would be extremely useful (/me looks at apple folks). If you try hard enough, you should be able to get clang to produce a dsym bundle for you even on linux. This did the trick for me:

  $ cat /tmp/a.c 
  void start() asm("start");
  void dyld_stub_binder() asm("dyld_stub_binder");
  void start() {}
  void dyld_stub_binder() {}
  $ bin/clang --target=x86_64-apple-darwin --debug /tmp/a.c -o /tmp/a.out -fuse-ld=lld -nostdlib
  ld64.lld: warning: -sdk_version is required when emitting min version load command.  Setting sdk version to match provided min version
  $ ls -l /tmp/a.out.dSYM/Contents/Resources/DWARF
  total 12
  -rw-rw---- 1 pavel pavel 8852 Dec 19 10:24 a.out




More information about the lldb-commits mailing list