Re: GDB / AArch64 / MacOS
John Baldwin <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 7/19/23 12:02 PM, Andrew Haley wrote: > On 7/19/23 18:05, Paul Koning wrote: >> >>> On Jul 19, 2023, at 1:02 PM, John Baldwin <[email protected]> wrote: >>> >>> On 7/19/23 6:19 AM, Andrew Haley via Gdb wrote: >>>> What is the status of this combo? It seems that GDB works fine for a compiled >>>> (emulated in Rosetta) MacOS/x86 app, but not a MacOS/AArch64 app. Has anyone >>>> seen patches to make this work? >>> >>> I don't think there is any support for MacOS/AArch64 as a target (e.g. no >>> aarch64-darwin-nat.c) and I haven't seen any patches for that either. > > Maybe I could start with the AArch64/BSD target, do you think? The > differences would be the way that args are passed between functions > and stack layouts, I guess. I think you are probably better off starting with the x86 darwin target since it uses Mach ports for debugging rather than ptrace. Probably the architecture-specific parts you would need (dealing with different register sets, etc.) is fairly small. -- John Baldwin