>  Q&A  >  본문

c++ - MAC OS X下如何找到core dump文件?

我在家里学习GDB调试核心转储文件,请问OSX下的core dump文件会产生在哪?
程序当前目录没看到有。ulimit -c unlimited 已打开。
我使用了一个空指针,去引发core dump,成功了,我看到命令行提示“Segmentation fault: 11 (core dumped)”
但就不知文件在哪,并且如何自定义它的存储位置?。

PHP中文网PHP中文网2715일 전590

모든 응답(1)나는 대답할 것이다

  • 阿神

    阿神2017-04-17 14:48:44

    找到答案只需要 Google 关键字 mac os x core dump,第一条答案就是的

    Where are core dumps written in Mac OS X?

    회신하다
    0
  • 취소회신하다