title: Issues with gdb code signature on OS X
body: <blockquote>
    <p>Unable to find Mach task port for process-id 2546: (os/kern) failure
    (0x5).\n (please check gdb is codesigned - see taskgated(8))</p>
  </blockquote>
  
  <p>What's wrong with my <strong>ggdb</strong> debugger tool (gdb installed by MacPorts), It was working perfectly for months till now!  </p>
  
  <p>The whole problem starts just after running the following command to install some avr tools and libraries:<br>
   <code>port install avrdude avarice avr-binutils avr-gcc avr-libc avr-gdb simulavr uisp git gcc5 gcc6</code>  </p>
  
  <p>It's not a How-to-sign question, it's already signed months ago, however I'll really appreciate any help suggestions.</p>
  
  <hr>
  
  <p>You may need to have a look at those:</p>
  
  <blockquote>
    <p>which ggdb</p>
  </blockquote>
  
  <pre><code>/opt/local/bin/ggdb
  </code></pre>
  
  <blockquote>
    <p>security find-identity -p codesigning</p>
  </blockquote>
  
  <pre><code>Policy: Code Signing
    Matching identities
    1) 4627C4FCFACC41114B956E7DAB83E83C014641BC "gdb-cert"
       1 identities found
  
    Valid identities only
    1) 4627C4FCFACC41114B956E7DAB83E83C014641BC "gdb-cert"
       1 valid identities found
  </code></pre>
  
  <blockquote>
    <p>find / -name <strong>gdb</strong>  </p>
  </blockquote>
  
  <p><em>I'm <strong>not</strong> using this.</em></p>
  
  <pre><code>/Applications/Android Studio.app/Contents/bin/lldb/shared/stl_printers/gdb
  /Applications/Arduino.app/Contents/Java/hardware/tools/avr/include/gdb
  /Applications/CLion.app/Contents/bin/gdb
  /Applications/CLion.app/Contents/bin/gdb/bin/gdb
  /Applications/CLion.app/Contents/bin/gdb/share/gdb
  /Applications/CLion.app/Contents/bin/gdb/share/gdb/python/gdb
  /opt/local/include/gdb
  /opt/local/libexec/gnubin/gdb
  /opt/local/share/gdb
  /opt/local/share/gdb/python/gdb
  /opt/local/share/glib-2.0/gdb
  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_cross_i386-mingw32-binutils/i386-mingw32-binutils/work/binutils-2.21/include/gdb
  /opt/local/var/macports/software/gdb
  /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/gdb
  </code></pre>
  
  <blockquote>
    <p>find / -name <strong>ggdb</strong>  </p>
  </blockquote>
  
  <p><em>I'm using this.</em></p>
  
  <pre><code>/opt/local/bin/ggdb
  </code></pre>
  
  <blockquote>
    <p>uname -a</p>
  </blockquote>
  
  <pre><code>Darwin Ghoneim.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
  </code></pre>
  
  <p>Thanks for advance for helping me figuring it out..</p>