ghidra: [Debugger] on MacOS - Java: Could not detect GDB's interpreter mode
Describe the bug I cannot connect to a debugging target on macOS Big Sur (11.0.1)
To Reproduce
- Click ‘Create a new connection to a debugging target’ on the Debugging Targets pane of the Debugger window in Ghidra
- Select “IN-VM gnu gdb local debugger” and enter path to gdb executable ( /usr/local/bin/gdb )
- Press connect
Expected behavior Ghidra creates a connection to GDB
Screenshots

Attachments Exception:
java.util.concurrent.CompletionException: java.io.IOException: Could not detect GDB's interpreter mode
---------------------------------------------------
Build Date: 2020-Dec-27 1528 CST
Ghidra Version: 9.3
Java Home: /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home
JVM Version: Oracle Corporation 11.0.2
OS: Mac OS X 10.16 x86_64
Workstation: johnnys-mbp.domain
Environment (please complete the following information):
- OS: macOS 11.0.1
- Ghidra Version: 9.3 build DEV
- Java Version: 11.0.2
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 20 (5 by maintainers)
Going with 5 😃
That said, support for lldb is well-under way. Doesn’t save you from the codesigning issue, however, if you’re attaching the debugger vice launching the executable directly.