From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76925 invoked by alias); 31 Oct 2016 12:00:47 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 76902 invoked by uid 89); 31 Oct 2016 12:00:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=Recovery, signing, D*be, tristan X-HELO: mail-qk0-f170.google.com Received: from mail-qk0-f170.google.com (HELO mail-qk0-f170.google.com) (209.85.220.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Oct 2016 12:00:36 +0000 Received: by mail-qk0-f170.google.com with SMTP id z190so157827204qkc.2 for ; Mon, 31 Oct 2016 05:00:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EdHnQhlgFMIZEceJi5EJdET/7wCg1whHgpjdlNzrUSg=; b=fbUDhOKNUbZnbXO7dGqJ7Jo4c0hmF0nYa4+JrQ52au47+iwkWfw7Mvz/DkDD6OA77e R9imsA5lKvV8RYNfQmAZORK04uCWPRzA6Q24maqzKdikSyjJBfaG/SplkQ3rJ85DTMax Zf3Rp2Wyw6/iq4APyouGmua6FlHhuTxE4NOcMdi/cNRS5+JQvzzHJRzfIPDq7JWewI2e GdejY19HDfnmoOEjysncO/9ZSSzmcX5GBY3E4dHiCMxvx25zB5mZogoW4krSCrQXkr6r 6uWody38UXVHwXWT1DjmB82KyDUuqhx8DhFOF3fSAoypKWgi4fCMZai1+CUGA/Iq941p JQjw== X-Gm-Message-State: ABUngvf9b9vu9eDOrUq2+99jzfmT0gMKe0Vjk6T1sSC8Zs6MOFhmlY2BcrZBwcpw6E5C5HD9F7X6yx0HntJf8w== X-Received: by 10.55.27.40 with SMTP id b40mr23373629qkb.256.1477915234371; Mon, 31 Oct 2016 05:00:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.149.235 with HTTP; Mon, 31 Oct 2016 05:00:33 -0700 (PDT) In-Reply-To: <581730F0.6000106@watlock.be> References: <20161001140850.Horde.5Pxfey2wqn5X76dSpncV3uA@mail.elis.ugent.be> <581730F0.6000106@watlock.be> From: Jack Howarth Date: Mon, 31 Oct 2016 12:00:00 -0000 Message-ID: Subject: Re: gdb on macOS 10.12 "Sierra" To: Jonas Maebe Cc: Tristan Gingold , "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00059.txt.bz2 On Mon, Oct 31, 2016 at 7:54 AM, Jonas Maebe wr= ote: > 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? Reporte= dly, it works when you disable SIP (which is understandable, given https://= developer.apple.com/library/content/documentation/Security/Conceptual/Syste= m_Integrity_Protection_Guide/RuntimeProtections/RuntimeProtections.html ), = but plain code signing no longer seems to cut it. >> >> No, I haven't tried yet. Did you investigate if lldb has updated its bu= ild instructions ? > > I finally got time to look into this. lldb's codesigning instructions > are at > https://llvm.org/svn/llvm-project/lldb/trunk/docs/code-signing.txt . > 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 Partiti= on. 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