title: "please check gdb is codesigned - see taskgated(8)" - How to get gdb installed with homebrew code signed?
body: <p>I'm under osx 10.8.4 and have installed gdb 7.5.1 with homebrew (motivation get a new gdb with  new features such as --with-python etc... )</p>
  
  <p>Long story short when I run debug within a c++ Eclipse project I get :</p>
  
  <pre><code>Error in final launch sequence
  Failed to execute MI command:
  -exec-run
  Error message from debugger back end:
  Unable to find Mach task port for process-id 46234: (os/kern) failure (0x5).
   (please check gdb is codesigned - see taskgated(8))
  Unable to find Mach task port for process-id 46234: (os/kern) failure (0x5).
   (please check gdb is codesigned - see taskgated(8))
  </code></pre>
  
  <p>I have followed various suggestions for code signing</p>
  
  <ul>
  <li><a href="https://sourceware.org/gdb/wiki/BuildingOnDarwin" rel="noreferrer">https://sourceware.org/gdb/wiki/BuildingOnDarwin</a></li>
  <li>partly <a href="http://www.noktec.be/archives/1251" rel="noreferrer">http://www.noktec.be/archives/1251</a> with various adjusts</li>
  </ul>
  
  <p>So I did:</p>
  
  <ol>
  <li>Set up the certificate</li>
  <li>Sign the gdb -> codesign -s gdb-cert /usr/local/bin/gdb</li>
  </ol>
  
  <p>When I re-run debugging in Eclipse I get same error as above "(please check gdb is codesigned - see taskgated(8))".</p>
  
  <p>If I set back the gdb to the older gdb (in the gdb preferences of Eclipse) /usr/libexec/gdb/gdb-i386-apple-darwin the debugging runs as expected.</p>
  
  <p>Any solutions / hints out there ?</p>
  
  <p>Thx</p>
  
  <p>Pelle</p>