gdb on macOS 10.12 "Sierra"

Jack Howarth
Mon Oct 31 12:00:00 GMT 2016

On Mon, Oct 31, 2016 at 7:54 AM, Jonas Maebe <> wrote:
> Tristan Gingold wrote:
>>> On 01 Oct 2016, at 14:08, Jonas Maebe <> wrote:
>>> 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 ?
> I finally got time to look into this. lldb's codesigning instructions
> are at
> .
> They have not been updated recently, but they do differ from gdb's.
> However, the result is exactly the same: SIG113.
> I've also asked on the darwin-dev@apple list, but did not get any
> replies there.

It has been reported that the hardened security in Sierra requires the
additional step of executing

   csrutil enable --without debug

from within the Terminal application when booted under the Recovery Partition.
I don't have access to a machine that can run Sierra to verify it though.

> ...
> I've now tried building lldb, and regardless of whether I use the GDB or
> LLDB-style codesigning certificate to sign debugserver (lldb itself does
> not need codesigning), it works. So it seems like the problem is not
> necessarily related to codesigning per se.
> Jonas

More information about the Gdb mailing list