friss added a comment.

> 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
>   

Pretty sure this won't work. It might generate a dSYM, but an empty one. 
dsymutil relies on the linker leaving breadcrumbs in the executable to be able 
to link the DWARF and AFAIK lld doesn't do this.


Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D55859



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to