* GDB on M1 mac? [not found] <aae73c66-2cd0-4710-b9ad-ac1f2770b08d@Spark> @ 2022-06-22 6:52 ` Gerd Möllmann 2022-06-22 8:57 ` Luis Machado 0 siblings, 1 reply; 5+ messages in thread From: Gerd Möllmann @ 2022-06-22 6:52 UTC (permalink / raw) To: gdb I tried bulding gdb 12.1 on macOS 12.4 with an Apple M1 chip, but it öooks 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GDB on M1 mac? 2022-06-22 6:52 ` GDB on M1 mac? Gerd Möllmann @ 2022-06-22 8:57 ` Luis Machado 2022-06-22 13:01 ` Paul Koning 0 siblings, 1 reply; 5+ messages in thread From: Luis Machado @ 2022-06-22 8:57 UTC (permalink / raw) To: Gerd Möllmann, gdb Hi, On 6/22/22 07:52, Gerd Möllmann via Gdb wrote: > I tried bulding gdb 12.1 on macOS 12.4 with an Apple M1 chip, but it öooks 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 Arm has macOS-hosted arm-none-eabi tools, but I don't think native aarch64 debugging on macOS is supported, as you said. 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. I think LLDB is the way to go on macOS. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GDB on M1 mac? 2022-06-22 8:57 ` Luis Machado @ 2022-06-22 13:01 ` Paul Koning 2022-06-22 13:06 ` Luis Machado 0 siblings, 1 reply; 5+ messages in thread From: Paul Koning @ 2022-06-22 13:01 UTC (permalink / raw) To: Luis Machado; +Cc: Gerd Möllmann, gdb > On Jun 22, 2022, at 4:57 AM, Luis Machado via Gdb <gdb@sourceware.org> wrote: > > Hi, > > On 6/22/22 07:52, Gerd Möllmann via Gdb wrote: >> I tried bulding gdb 12.1 on macOS 12.4 with an Apple M1 chip, but it öooks 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 > > Arm has macOS-hosted arm-none-eabi tools, but I don't think native aarch64 debugging on macOS is supported, as you said. > > 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. > > 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. paul ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GDB on M1 mac? 2022-06-22 13:01 ` Paul Koning @ 2022-06-22 13:06 ` Luis Machado 2022-06-22 13:09 ` Paul Koning 0 siblings, 1 reply; 5+ messages in thread From: Luis Machado @ 2022-06-22 13:06 UTC (permalink / raw) To: Paul Koning; +Cc: Gerd Möllmann, gdb On 6/22/22 14:01, Paul Koning wrote: > > >> On Jun 22, 2022, at 4:57 AM, Luis Machado via Gdb <gdb@sourceware.org> wrote: >> >> Hi, >> >> On 6/22/22 07:52, Gerd Möllmann via Gdb wrote: >>> I tried bulding gdb 12.1 on macOS 12.4 with an Apple M1 chip, but it öooks 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 >> >> Arm has macOS-hosted arm-none-eabi tools, but I don't think native aarch64 debugging on macOS is supported, as you said. >> >> 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. >> >> 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. 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: GDB on M1 mac? 2022-06-22 13:06 ` Luis Machado @ 2022-06-22 13:09 ` Paul Koning 0 siblings, 0 replies; 5+ messages in thread From: Paul Koning @ 2022-06-22 13:09 UTC (permalink / raw) To: Luis Machado; +Cc: Gerd Möllmann, gdb > On Jun 22, 2022, at 9:06 AM, Luis Machado <luis.machado@arm.com> wrote: > > On 6/22/22 14:01, Paul Koning wrote: >>> On Jun 22, 2022, at 4:57 AM, Luis Machado via Gdb <gdb@sourceware.org> wrote: >>> >>> Hi, >>> >>> On 6/22/22 07:52, Gerd Möllmann via Gdb wrote: >>>> I tried bulding gdb 12.1 on macOS 12.4 with an Apple M1 chip, but it öooks 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 >>> >>> Arm has macOS-hosted arm-none-eabi tools, but I don't think native aarch64 debugging on macOS is supported, as you said. >>> >>> 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. >>> >>> 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. > > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-06-22 13:09 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <aae73c66-2cd0-4710-b9ad-ac1f2770b08d@Spark> 2022-06-22 6:52 ` GDB on M1 mac? Gerd Möllmann 2022-06-22 8:57 ` Luis Machado 2022-06-22 13:01 ` Paul Koning 2022-06-22 13:06 ` Luis Machado 2022-06-22 13:09 ` Paul Koning
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).