armradare2

Cutter with arm debugging


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?


Solution

  • ENVIRONMENT

    SOLUTION

    debug_is_beta

    EXAMPLE

    Option 1

    Open Cutter with target ARM binary and seek to main function.

    seek_to_main

    Select "Start emulation" from Debug menu.

    debug_menu

    Set breakpoints/step/continue as if debugging.

    debug_like_normal

    Option 2

    Open Cutter with target ARM binary and seek to main function.

    seek_to_main

    Launch remote session for target ARM binary.

    user@host:~$ qemu-arm -g 5000 test.x
    
    

    Select "Connect to a remote debugger" from Debug menu.

    debug_menu

    Target the remote debugger.

    remote_config

    Set breakpoints/step/continue like normal.

    debug_like_normal