From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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? From: Paul Koning In-Reply-To: Date: Wed, 22 Jun 2022 09:09:01 -0400 Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= , gdb@sourceware.org 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-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, JMQ_SPF_NEUTRAL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Wed, 22 Jun 2022 13:09:08 -0000 > 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