LLDB

作者: 布衣Alpha | 来源:发表于2016-08-11 10:50 被阅读0次

http://lldb.llvm.org/

创建core dump

  • 在终端检查是否打开:ulimit -c (unlimited表示打开,0表示关闭)
    -c是core,还有其它用http://www.cnblogs.com/qq78292959/archive/2012/05/08/2490443.html
  • 打开: ulimit -c unlimited
  • 全局设置: 在/etc/profile加上 ulimit -c unlimited
  • 配置dump路径:
    sudo sysctl kern.corefile=/cores/core.%N.%P (其中%N表示进程名字,%P表示进程id。Linux还有%S,%T分别表示最后一个信号和时间,在MAC上没找到对应的)
  • lldb加载coredump: lldb -c {dumpfile}

参考:http://blog.sina.com.cn/s/blog_41299a970102w647.html

相关文章

网友评论

      本文标题:LLDB

      本文链接:https://www.haomeiwen.com/subject/mdzjsttx.html