Recent

Author Topic: GDB High Sierra success  (Read 4401 times)

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
GDB High Sierra success
« on: June 26, 2018, 10:23:22 pm »
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

  • Sr. Member
  • ****
  • Posts: 404
Re: GDB High Sierra success
« Reply #1 on: June 26, 2018, 11:49:21 pm »
it will be very nice of you if you can share the procedure.

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: GDB High Sierra success
« Reply #2 on: June 27, 2018, 12:14:35 am »
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

  • Hero Member
  • *****
  • Posts: 1058
Re: GDB High Sierra success
« Reply #3 on: June 27, 2018, 07:00:31 pm »
The procedure is documented on the official gdb wiki: https://sourceware.org/gdb/wiki/BuildingOnDarwin#Method_for_Mac_OS_X_10.5_.28Leopard.29_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

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: GDB High Sierra success
« Reply #4 on: July 03, 2018, 06:55:51 pm »
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.

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.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

 

TinyPortal © 2005-2018