From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AJjkNxUR2mBBEwAAWB0awg (envelope-from ) for ; Mon, 28 Jun 2021 14:12:37 -0400 Received: by simark.ca (Postfix, from userid 112) id DE22F1F1F2; Mon, 28 Jun 2021 14:12:37 -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 303D61E939 for ; Mon, 28 Jun 2021 14:12:37 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B4EDC39CD40C for ; Mon, 28 Jun 2021 18:12:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4EDC39CD40C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624903956; bh=mjpJjr+mQgNvFdhGv2svRWNGePFThiflgFs55Eab5Fc=; h=Subject:Date:In-Reply-To:To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=fFk38WxC3ECNBlk1x+U4B8KfpirGjtoULOBYtiNrAORUkM/DS/S2753qfeZzXWIFp gH2wpaK1pdjbcZ+dia+P4Rk7mSyy4YTxDhb7y9LMGETiTVq5TtDzPUlEi2D1HHIln6 MxGbQY4i8HUKRcR9p756CKU4ko0y20Js81vXEYRc= Received: from pv50p00im-ztdg10011301.me.com (pv50p00im-ztdg10011301.me.com [17.58.6.40]) by sourceware.org (Postfix) with ESMTPS id 244133855004 for ; Mon, 28 Jun 2021 18:11:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 244133855004 Received: from smtpclient.apple (c-71-231-148-226.hsd1.wa.comcast.net [71.231.148.226]) by pv50p00im-ztdg10011301.me.com (Postfix) with ESMTPSA id 6A63576030B; Mon, 28 Jun 2021 18:11:00 +0000 (UTC) Message-Id: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: GDB and MacOS 11.4/BigSur Date: Mon, 28 Jun 2021 11:10:59 -0700 In-Reply-To: To: Simon Marchi 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> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-06-28_14:2021-06-25, 2021-06-28 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=-2147483648 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2106280119 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sam Warner via Gdb Reply-To: Sam Warner Cc: gdb@sourceware.org Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi, - some good news Gdb 9.2 doesn=E2=80=99t have this issue.=20 I=E2=80=99ll go confirm Eclipse/CDT works with GDB 9.2 for a quick = check, and then back to setting up the build-environment for 10.2 (and = testing the fix you have). Just want to aid others with an interim = solution for Eclipse/CDT. Sam sam@eclipsec bin % gdb gdb GNU gdb (GDB) 9.2 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later = This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-apple-darwin19.4.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from gdb... (No debugging symbols found in gdb) (gdb) file = /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.= HelloWorld.MacOS.Gcc Reading symbols from = /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.= HelloWorld.MacOS.Gcc... (No debugging symbols found in = /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.= HelloWorld.MacOS.Gcc) BFD: /usr/lib/dyld(i386:x86-64): unknown load command 0x34 BFD: /usr/lib/dyld(i386:x86-64): unknown load command 0x34 BFD: /usr/lib/dyld(i386:x86-64): unknown load command 0x34 (gdb) run Starting program: = /Users/sam/eclipse-workspace/Eclipse.HelloWorld.MacOS.Gcc/Release/Eclipse.= HelloWorld.MacOS.Gcc=20 [New Thread 0x2703 of process 25537] > On Jun 27, 2021, at 5:48 PM, Simon Marchi = wrote: >=20 > On 2021-06-27 6:44 p.m., Sam Warner wrote: >> Hi Simon, >>=20 >> Thanks - yes - I=E2=80=99ll start with that patch first. I obtain = the same call stack >>=20 >> 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. >=20 > I don't know what symbol-server is, I can't help you with that. >=20 > To build gdb, you normally just need to run these commands at the > top-level: >=20 > ./configure > make all-gdb >=20 > 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: >=20 > ./configure --disable-nls CFLAGS=3D"-g3 -O0" CXXFLAGS=3D"-std=3Dgnu++17= -g3 -O0" --with-libgmp-prefix=3D/opt/local > gmake >=20 > Update /opt/local to point where your libgmp is installed. gmake = refers > to GNU make, when installed through Macports. >=20 > Simon