From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CKleInoc2WDCfQAAWB0awg (envelope-from ) for ; Sun, 27 Jun 2021 20:48:58 -0400 Received: by simark.ca (Postfix, from userid 112) id 8A8C61F1F2; Sun, 27 Jun 2021 20:48:58 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C2FF01EE14 for ; Sun, 27 Jun 2021 20:48:57 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 850AF3890413 for ; Mon, 28 Jun 2021 00:48:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 850AF3890413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624841337; bh=iG+GH4TZs3RuFO/NqNCbbXoYzaFfpXeEU6rGzQjd7do=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=kvXgmS1Sw+nvTWGk4JkORSK+HJBIXkOUFahbJr8TwmfPCBOOmpxmj2ZIhy3ktTkH9 v4t99+IvOb12/i+My1BllujykpSZ4uWaP1oXjylm7bp8fRifc7X/oAYqZAXgg+bMs+ M4Z66m4H5iDpqxrrL37j7Xd6RKYiEuHFmofCyAlQ= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 3C74038930E0 for ; Mon, 28 Jun 2021 00:48:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3C74038930E0 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 15S0mMiY016255 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 27 Jun 2021 20:48:27 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 15S0mMiY016255 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id C86C91EE14; Sun, 27 Jun 2021 20:48:22 -0400 (EDT) Subject: Re: GDB and MacOS 11.4/BigSur To: Sam Warner References: <9717BBC8-70FA-47DD-8C62-33018D746003@me.com> <5180de47-136f-bad7-9f83-78ac02a323c6@polymtl.ca> <460390D0-EBA2-4FDA-9C08-FB23FB59A59D@me.com> <56e03cb6-efd1-4ac0-a355-30fb77684641@polymtl.ca> Message-ID: Date: Sun, 27 Jun 2021 20:48:22 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 28 Jun 2021 00:48:22 +0000 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Cc: gdb@sourceware.org Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 2021-06-27 6:44 p.m., Sam Warner wrote: > Hi Simon, > > Thanks - yes - I’ll start with that patch first. I obtain the same call stack > > My next two things to learn is how to get the equivalent of the symbol-server working, and then to setup a developer-environment for GDB. Any pointers would be great. I don't know what symbol-server is, I can't help you with that. To build gdb, you normally just need to run these commands at the top-level: ./configure make all-gdb The built gdb will be at gdb/gdb. But there are some additional quirks on macOS though, so it's not as simple as that. GDB requires libgmp, so you need to install that. You need GNU make to build (the make that comes with macOS is not GNU make). You can install those using Macports (or Brew, I guess) or by building them by hand. You can then probably get by using the commands: ./configure --disable-nls CFLAGS="-g3 -O0" CXXFLAGS="-std=gnu++17 -g3 -O0" --with-libgmp-prefix=/opt/local gmake Update /opt/local to point where your libgmp is installed. gmake refers to GNU make, when installed through Macports. Simon