title: How to generate core files on a Mac?
body: <p>I have a program that I hope to debug in gdb for a segmentation fault, but I'm not sure how I can generate a core file from it.</p>
  
  <p>I tried <code>$ ulimit -c unlimited</code>, but when ran the program and then navigated into /cores/, there is no core file generated there when I typed <code>ls</code>.</p>
  
  <p>Am I missing anything here?</p>
  
  <p>Thanks in advance!</p>