Skip to content

Instantly share code, notes, and snippets.

@figgyc
Created May 20, 2018 17:32
Show Gist options
  • Select an option

  • Save figgyc/ca9992cf5fad543b520d59579afac234 to your computer and use it in GitHub Desktop.

Select an option

Save figgyc/ca9992cf5fad543b520d59579afac234 to your computer and use it in GitHub Desktop.
How GDB

How to GDB

Thanks stary and liquidfenrir

  1. Enable debugger in the Rosalina menu
  2. Go to the process list
  3. Select a process (3dsx_app for 3ds homebrew)
  4. Launch arm-none-eabi-gdb <path to elf>
  5. Type the command target remote ip:port (IP and port are in Rosalina)
  • b <func | file:line | *address> to set a breakpoint
  • del <breakpoint number> to remove a breakpoint
  • p <expression> to print something
  • x <expression> to view memory there like if you have a pointer or something
  • c or continue
  • s, step
  • bt for backtrace with errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment