gdb on macOS 10.12 "Sierra"

Tedeschi, Walfred
Tue Oct 4 13:47:00 GMT 2016

Hello All,

It looks like Apple has increased security. We have got it to work with a workaround.
In case the signature is not from Apple the System Integrity protection has to be changed.
In this case reboot the machine enter in the recovery mode, start a terminal and issue the command:

$ csrutil enable --without debug

Reboot the system and the debug session will be able to proceed.


-----Original Message-----
From: [] On Behalf Of Tristan Gingold
Sent: Tuesday, October 4, 2016 12:43 PM
To: Jonas Maebe <>
Subject: Re: gdb on macOS 10.12 "Sierra"

> On 01 Oct 2016, at 14:08, Jonas Maebe <> wrote:
> Hi,
> Has anyone succeeded yet in getting gdb to work on macOS 10.12? Reportedly, it works when you disable SIP (which is understandable, given ), but plain code signing no longer seems to cut it.

No, I haven't tried yet.  Did you investigate if lldb has updated its build instructions ?


Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0,
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

More information about the Gdb mailing list