I've been able to run the debugger inside Cutter (radare2) using my native host (x86_64) libraries when reversing a x86 binary. How would I do such a thing when trying to debug an arm binary? How can I get cutter to use the libc.so for arm instead of my native host so I can debug?
Asked
Active
Viewed 1,226 times
1 Answers
4
ENVIRONMENT
- Cutter: Version 1.10.0, Using r2-4.1.1, Based on Qt 5.12.1 (GCC 7.4.0, 64 bit)
- System: Ubuntu 18.04.3 LTS
SOLUTION
- Note: As of Cutter v1.10.0 debugging is still in beta, therefore these results may vary and change over time.
- Option 1: Utilize the emulation features of Cutter instead of debugging.
- Option 2: Connect Cutter to a remote session.
EXAMPLE
Option 1
Open Cutter with target ARM binary and seek to main function.
Select "Start emulation" from Debug menu.
Set breakpoints/step/continue as if debugging.
Option 2
Open Cutter with target ARM binary and seek to main function.
Launch remote session for target ARM binary.
user@host:~$ qemu-arm -g 5000 test.x
Select "Connect to a remote debugger" from Debug menu.
Target the remote debugger.
Set breakpoints/step/continue like normal.

Kuma
- 427
- 5
- 17