Xcode 4.3-4.4 crashes with breakpoints using LLDB, breakpoints useless with GDB

前端 未结 1 1887
夕颜
夕颜 2020-12-12 02:41

Every time I try to run my target when Breakpoints using the LLDB Debugger, Xcode crashes. My colleague has no trouble using LLDB, and we\'re both running 4.4 (I\'ve had the

相关标签:
1条回答
  • 2020-12-12 03:20

    We recently fixed some name demangling issues. The name demangler is built into the OS in libc++abi.dylib. You can build this yourself and install it to possibly fix your issues:

    % sudo cp /usr/lib/libc++abi.dylib /usr/lib/libc++abi.dylib.orig
    % svn co http://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi
    % cd libcxxabi/lib
    % TRIPLE=x86_64-apple-macosx ./buildit
    % sudo cp libc++abi.dylib /usr/lib/libc++abi.dylib
    

    You can also just "try it out" without installing the "libc++abi.dylib" to make sure it fixes things first. The steps for that are:

    Quit Xcode first, and then:

    % svn co http://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi
    % cd libcxxabi/lib
    % TRIPLE=x86_64-apple-macosx ./buildit
    % DYLD_LIBRARY_PATH=`pwd` /Applications/Xcode.app/Contents/MacOS/Xcode
    

    This will run Xcode and allow it to use the local copy of "libc++abi.dylib" that you just built.

    0 讨论(0)
提交回复
热议问题