gdb problem lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Clemens · 2016-06-04 16:31 Hi! I installed gdb via MacPorts (/opt/local/bin/ggdb and gdb-apple).  I signed the two binaries. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ codesign -s "gdb certificate" /opt/local/bin/ggdb /opt/local/bin/ggdb: is already signed Then I try to use gdb on the command line: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ ggdb ./testGNU gdb (GDB) 7.9.1[...](gdb) run Starting program: /Users/Clemens/Languages/Free Pascal/test/test Unable to find Mach task port for process-id 1126: (os/kern) failure (0x5). (please check gdb is codesigned - see taskgated(8))(gdb) quit The error is unexpected, since codesigned seems to have worked.  Any ideas?  Is there anything else I have to do before using ggdb or gdb- apple?  Needless to say, gdb also doesn't work in Lazarus. Cheers, Clemens ---------------------------------------------------------------------- marcov · 2016-06-04 16:36 which ggdb ? ---------------------------------------------------------------------- Clemens · 2016-06-05 10:12 There are two gdb versions available in MacPorts.  Same problem with both. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ ggdb --versionGNU gdb (GDB) 7.9.1Copyright (C) 2015 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law.  Type "show copying"and "show warranty" for details.This GDB was configured as "x86_64-apple-darwin15.3.0".Type "show configuration" for configuration details.For bug reporting instructions, please see:.Find the GDB manual and other documentation resources online at:.For help, type "help".Type "apropos word" to search for commands related to "word". Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ gdb-apple --versionGNU gdb 6.3.50.20050815-cvs (Sun Jan 31 06:40:33 UTC 2016)Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB.  Type "show warranty" for details.This GDB was configured as "--host=i686-apple-darwin15.3.0 --target=". ---------------------------------------------------------------------- Jonas Maebe · 2016-06-13 14:19 Quote from: Clemens on June 04, 2016, 06:31:24 pmThe error is unexpected, since codesigned seems to have worked.  Any ideas?  Is there anything else I have to do before using ggdb or gdb-apple?  Needless to say, gdb also doesn't work in Lazarus. I've just significantly updated the official gdb wiki page on code signing, and added a troubleshooting section. Please follow that troubleshooting section to see whether it can resolve your problem. ---------------------------------------------------------------------- Clemens · 2016-06-14 16:23 Thanks, Jonas.  My binaries were owned by procmod, and these commands did the trick: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ sudo chmod 755 gdb$ sudo chgrp admin gdb I get warnings in the beginning that there are timeouts.  Other than that, it seems to work as far as I can tell so far. ---------------------------------------------------------------------- JonRobertson · 2016-08-13 04:33 Quote from: Jonas Maebe on June 13, 2016, 04:19:12 pmI've just significantly updated the official gdb wiki page on code signing, and added a troubleshooting section.Jonas, I came across this post while trying to solve an issue getting ggdb installed/codesigned.  I just wanted to give a big "Thanks!" for the gdb wiki page.  Pass along thanks to anyone else the contributed as well.  I was able to solve my issue with the info in the troubleshooting section.  Jon ---------------------------------------------------------------------- Jonas Maebe · 2016-08-13 11:33 You're welcome. Glad it helped!