title: GDB errors on macOS Mojave
body: <p>Environment: Mac/Mojave and GDB 8.2.1 (via homebrew).</p>
  
  <p>I worked through instructions <a href="https://forward-in-code.blogspot.com/2018/11/mojave-vs-gdb.html" rel="nofollow noreferrer">https://forward-in-code.blogspot.com/2018/11/mojave-vs-gdb.html</a> i.e.:</p>
  
  <ul>
  <li><p>latest GDB via brew, which solves the executable format issue</p></li>
  <li><p>sign GDB with new entitlements</p></li>
  </ul>
  
  <p>Additionally, I've also modified SIP to allow debugging (in Recovery OS terminal: <code>csrutil enable --without debug</code>).</p>
  
  <p>However, I still can’t get gdb to work:</p>
  
  <pre><code>(gdb) file main
  Reading symbols from main...done.
  (gdb) run
  Starting program: /Users/joubertold/code/Rhodus/obj/debug/main 
  [New Thread 0x1a03 of process 5082]
  [New Thread 0x2803 of process 5082]
  During startup program terminated with signal ?, Unknown signal.
  (gdb) 
  </code></pre>
  
  <p>Interestingly, lldb works for me on the same binary:</p>
  
  <pre><code>(lldb) file main
  Current executable set to 'main' (x86_64).
  (lldb) run
  Process 5086 launched: '/Users/joubertold/code/Rhodus/obj/debug/main' (x86_64)
  Rhodus
   1 is ONE
   1 is between 1 and 10
   1 is between 1 and 10
   1 is between 1 and 10
   1 is between 1 and 10
   1 is between 1 and 10
   1 is between 1 and 10
   1 is between 1 and 10
   1 is between 1 and 10
   1 is beyond
   1 is beyond
   1 is beyond
  Process 5086 exited with status = 0 (0x00000000) 
  (lldb) 
  </code></pre>
  
  <p>Any thoughts? </p>