Building gdb from source on MacOS
Asked Answered
E

1

2

I'm trying to install a cross-compiled gdb on an Apple M1 MacBook. I downloaded gdb 11.1 and did:

/tmp/src/gdb-11.1/configure --enable-targets=all
make
sudo make install

The commands seemed to have completed without error. All the relevant files seems to be installed when I check /usr/local/include, /usr/local/lib, etc., but the actual binary for gdb is nowhere to be found. Ideas?

Emerick answered 12/12, 2021 at 8:50 Comment(2)
Can you pipe the command to a file or command window. It might give you some information.Thallophyte
GDB does not yet support Apple M1. As you found out, some things get built, but not GDB itself.Gray
R
9

GDB is not supported on MacOS/m1 (aarch64).

You can track (authoritative) updates on the GDB discussion lists. The link below is latest status (July 2022). Currently there are no contributors working on it, only option appears to be LLDB (which should be able to handle "-O0" code).

https://inbox.sourceware.org/gdb/3185c3b8-8a91-4beb-a5d5-9db6afb93713@Spark/

Roturier answered 2/9, 2022 at 7:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.