gdb: code-sign the binary

Murray Eisenberg murrayeisenberg at gmail.com
Fri Nov 17 18:12:06 UTC 2017


The notes for gd8.0.1_0I  say that I have to codesign /opt/local/bin/ggdb.
 They refer to...

   https://sourceware.org/gdb/wiki/BuildingOnDarwin#Giving_gdb_permission_to_control_other_processes

..for the procedure, which I followed for steps 2.1.1 (create a certificate in the System keychain) and 2.1.2 (refresh the system’s certificates and code-signing data).

I’m now at step 2.1.3, which says to use...

   $ codesign -s gdb-cert gdb

…and to specify the full path to the gdb binary. I have two issues:

(1) So far as I can see, there’s no binary named gdb; there is the binary ggdb. Is that the name I should be using, with its path /opt/local/bin/ggdb?

(2) If I do execute…

    sudo codesign -s gdb-cert /opt/local/bin/ggdb   

… then I get a pop-up window 'code sign wants to use the “System” keychain. Please enter the keychain password.’

But I don’t know the System keychain’s password. (My account is an admin account, but the account password is not the System keychain password.)

How should I proceed?

---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20171117/0d829956/attachment.html>


More information about the macports-users mailing list