Sina
Sina

Reputation: 13

gdb on macOS Sierra 10.12.4

There are lots of help around regarding the incompatibility of Sierra and gdb, and everyone says that the best solution is waiting.

The problem seems to still persist, could anyone please help me how I can solve it?

I have already tried this and it does not work on my Sierra.

GDB kind of doesn't work on macOS Sierra

Thanks

Upvotes: 0

Views: 1515

Answers (2)

fest
fest

Reputation: 11

None GDB 7.11 or 7.12.1 will not work on Sierra 10.12.4 In short it's because of Apple security upgrade. We need to wait for re-enabling when some new version will shows up.

Easy WA is to use LLDB as a debugger for now. Sample instructions here

Another LLDB instruction here

Upvotes: 0

J. Wells
J. Wells

Reputation: 26

A fix has been created, but not merged and released yet. In the meantime, I have patched the most recent release of GDB with the changes and have things working with the latest version of Sierra. You can access my repo below and compile from scratch. Be sure to code sign the new binary and "set startup-with-shell off" in .gdbinit.

https://github.com/joshwells/binutils-gdb

Upvotes: 1

Related Questions