From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46306 invoked by alias); 31 Oct 2016 11:54:39 -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 43844 invoked by uid 89); 31 Oct 2016 11:54:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_SPAM,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=signing, D*be, H*UA:3.0.11, H*u:3.0.11 X-HELO: smtp3.ugent.be Received: from smtp3.ugent.be (HELO smtp3.ugent.be) (157.193.49.127) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 31 Oct 2016 11:54:28 +0000 Received: from localhost (mcheck3.ugent.be [157.193.71.89]) by smtp3.ugent.be (Postfix) with ESMTP id 4AB89EE251; Mon, 31 Oct 2016 12:54:26 +0100 (CET) Received: from smtp3.ugent.be ([157.193.49.127]) by localhost (mcheck3.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id vljXr0J_LnZH; Mon, 31 Oct 2016 12:54:26 +0100 (CET) Received: from ponyo.lan (ip-213-49-242-166.dsl.scarlet.be [213.49.242.166]) (Authenticated sender: jmaebe) by smtp3.ugent.be (Postfix) with ESMTPSA id BC1B2EE252; Mon, 31 Oct 2016 12:54:25 +0100 (CET) Message-ID: <581730F0.6000106@watlock.be> Date: Mon, 31 Oct 2016 11:54:00 -0000 From: Jonas Maebe User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: Tristan Gingold CC: gdb@sourceware.org Subject: Re: gdb on macOS 10.12 "Sierra" References: <20161001140850.Horde.5Pxfey2wqn5X76dSpncV3uA@mail.elis.ugent.be> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-j-chkmail-Auth: USER-ID jmaebe X-j-chkmail-Enveloppe: 581730F1.001 from ip-213-49-242-166.dsl.scarlet.be/ip-213-49-242-166.dsl.scarlet.be/213.49.242.166/ponyo.lan/ X-j-chkmail-Score: MSGID : 581730F1.001 on smtp3.ugent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00058.txt.bz2 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 https://developer.apple.com/library/content/documentation/Security/Conceptual/System_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 build 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. ... 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