From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id R0wWB78Us2LsRwQAWB0awg (envelope-from ) for ; Wed, 22 Jun 2022 09:10:23 -0400 Received: by simark.ca (Postfix, from userid 112) id 0857B1E220; Wed, 22 Jun 2022 09:10:23 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=YEbvytg6; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 61C321E15C for ; Wed, 22 Jun 2022 09:10:22 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 07E523856DD0 for ; Wed, 22 Jun 2022 13:10:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07E523856DD0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1655903422; bh=/6N6undYa1EVJe0G94jwsqubbB1nnZnRZuyt1cjVm4A=; h=Subject:In-Reply-To:Date:References:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=YEbvytg6q9mpin9tD8Rjry1Hd7PxXk+THSXOUAjc5fLPfpPOG6bKdpueYQqpdoF9L dXJhF1rt69Yz9MzG4kPrn841XgMFiemhQc7AzyjNGHJy79D4sj6sGRN7eBuCF+FtTM t7YsopCWJdBR9MHBBaOkkMOtKkLxvrz3LwsHOycE= Received: from resqmta-h1p-028592.sys.comcast.net (resqmta-h1p-028592.sys.comcast.net [IPv6:2001:558:fd02:2446::5]) by sourceware.org (Postfix) with ESMTPS id 6146B3834E61 for ; Wed, 22 Jun 2022 13:09:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6146B3834E61 Received: from resomta-h1p-027919.sys.comcast.net ([96.102.179.208]) by resqmta-h1p-028592.sys.comcast.net with ESMTP id 3zWhoiViwfeGE406SoK490; Wed, 22 Jun 2022 13:09:04 +0000 Received: from smtpclient.apple ([73.60.223.101]) by resomta-h1p-027919.sys.comcast.net with ESMTPSA id 406Po1jANtRQH406RoODs6; Wed, 22 Jun 2022 13:09:04 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvfedrudefhedgiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjgffvefgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpefrrghulhcumfhonhhinhhguceophgruhhlkhhonhhinhhgsegtohhmtggrshhtrdhnvghtqeenucggtffrrghtthgvrhhnpeelvedvhfffledujedvleeuffetudefvefhueffleefjeettdduhedvkeehvddvteenucfkphepjeefrdeitddrvddvfedruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehsmhhtphgtlhhivghnthdrrghpphhlvgdpihhnvghtpeejfedriedtrddvvdefrddutddupdhmrghilhhfrhhomhepphgruhhlkhhonhhinhhgsegtohhmtggrshhtrdhnvghtpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhuihhsrdhmrggthhgrughosegrrhhmrdgtohhmpdhrtghpthhtohepghgvrhgurdhmohgvlhhlmhgrnhhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohepghgusgesshhouhhrtggvfigrrhgvrdhorhhg X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: GDB on M1 mac? In-Reply-To: Date: Wed, 22 Jun 2022 09:09:01 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <1BD161F9-A6BB-4682-AD39-7698D56F0BB0@comcast.net> References: <3185c3b8-8a91-4beb-a5d5-9db6afb93713@Spark> <6b48224b-9e2e-518d-793b-df4fc5514884@arm.com> To: Luis Machado X-Mailer: Apple Mail (2.3654.120.0.1.13) 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: Paul Koning via Gdb Reply-To: Paul Koning Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= , gdb@sourceware.org Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" > On Jun 22, 2022, at 9:06 AM, Luis Machado = wrote: >=20 > On 6/22/22 14:01, Paul Koning wrote: >>> On Jun 22, 2022, at 4:57 AM, Luis Machado via Gdb = wrote: >>>=20 >>> Hi, >>>=20 >>> On 6/22/22 07:52, Gerd M=C3=B6llmann via Gdb wrote: >>>> I tried bulding gdb 12.1 on macOS 12.4 with an Apple M1 chip, but = it =C3=B6ooks like that target is not supported. >>>> Can I ask if there are plans to support that platform, or even work = in progress that I could try out? (I'd use it for debugging Emacs on = macOS.) >>>> TIA >>>=20 >>> Arm has macOS-hosted arm-none-eabi tools, but I don't think native = aarch64 debugging on macOS is supported, as you said. >>>=20 >>> I can't speak for other contributors, but I don't know of any plan = to support that OS/arch combination for GDB. We're open to >>> accepting patches though. >>>=20 >>> I think LLDB is the way to go on macOS. >> Unfortunately that seems to be the only option right now, but it's a = nasty one. The UI is obnoxious, and it can't debug GCC output at all = unless it was compiled with -O0. >=20 > Technically we have darwin native support for x86-64 (don't know how = well it works). If that works well, It might be a matter of implementing = the native parts for aarch64. The x86-64 Darwin GDB has been useable for me in the past, so yes, an = aarch64 port of that would be a promising notion and should do a much = better job debugging optimized code. paul