<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m a bit confused as to the steps involved for code signing the gdb application before using it.<div class=""><br class=""></div><div class="">The notes for gdb says:</div><div class="">-----------------------------------</div><div class="">gdb has the following notes:<br class=""> You will need to make sure /System/Library/LaunchDaemons/com.apple.taskgated.plist has the '-p' option, e.g.<br class=""> <key>ProgramArguments</key><br class=""> <array><br class=""> <string>/usr/libexec/taskgated</string><br class=""> <string>-sp</string><br class=""> </array><br class=""> <br class=""> Due to kernel caching, you usually need to restart Mac OS X for this option to effect.</div><div class="">------------------------------------</div><div class=""><br class=""></div><div class="">Okay, so far so good. I disabled SIP, restarted, made those changes and then reenabled SIP and restarted. But I heard that the Darwin kernel needs the gdb executable to be code signed in order to have permissions to control other processes. </div><div class=""><br class=""></div><div class="">I found instructions for how to do so here: </div><div class=""><br class=""></div><div class=""><a href="https://gcc.gnu.org/onlinedocs/gcc-4.8.1/gnat_ugn_unw/Codesigning-the-Debugger.html" class="">https://gcc.gnu.org/onlinedocs/gcc-4.8.1/gnat_ugn_unw/Codesigning-the-Debugger.html</a></div><div class=""><br class=""></div><div class="">But I have not yet gone ahead and done so since I am confused about the <gnat_install_prefix> argument in the last step. First of all, is this referring to the gcc ada compiler…and if so, is it already installed or do I need to go and install this thing? I was under the impression all dependencies for gdb were installed before gdb itself was installed so shouldn't this prerequisite exist somewhere on my system, I just don’t know where?</div><div class=""><br class=""></div><div class="">Any clarifications are appreciated…thanks.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>