GDB High Sierra success lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Trenatos · 2018-06-26 20:23 I finally managed to get GDB working with Lazarus on my Mac running El Capitan (10.11.5) The process (Without details, I don't have time right now, will write a blog post asap): Installing GDB 8.0 (Not 8.1), codesigning (/usr/local/Cellar/gdb/8.0/bin/gdb), restarting taskgated, starting gdb once on CLI (Or just reboot), setting up Lazarus to use the proper executable instead of the symlink (/usr/local/Cellar/gdb/8.0/bin/gdb) And finally... it works. Anyone who says "It just works" have never done software development on a Mac. ---------------------------------------------------------------------- Xor-el · 2018-06-26 21:49 it will be very nice of you if you can share the procedure. ---------------------------------------------------------------------- Trenatos · 2018-06-26 22:14 No worries Xor-el, I plan to verify that it also works on High Sierra, and write up a blog post about it, possibly update the Wiki ---------------------------------------------------------------------- Jonas Maebe · 2018-06-27 17:00 The procedure is documented on the official gdb wiki: https://sourcewa re.org/gdb/wiki/BuildingOnDarwin#Method_for_Mac_OS_X_10.5_.28Leopard.2 9_and_later A note about the fact that GDB 8.1 does not work on macOS 10.13 is mentioned in the troubleshooting section, but the GDB developers are asking for someone with this problem to file a bug report about this so it can be fixed/won't be forgotten. ---------------------------------------------------------------------- VTwin · 2018-07-03 16:55 Quote from: Jonas Maebe on June 27, 2018, 07:00:31 pmA note about the fact that GDB 8.1 does not work on macOS 10.13 is mentioned in the troubleshooting section, but the GDB developers are asking for someone with this problem to file a bug report about this so it can be fixed/won't be forgotten. Good to know! They say to use gdb 8.0.1 instead. I am using macOS 10.11.5 (El Capitain) with gdb 7.12, and am reluctant to upgrade largely because I don't want to have to deal with such issues. Homebrew reports gdb 8.1 as the upgrade, glad I did not do it.