Skip to content

Instantly share code, notes, and snippets.

@junr03
Last active August 29, 2015 14:18
Show Gist options
  • Save junr03/630d71db2fe9f95e2526 to your computer and use it in GitHub Desktop.
Save junr03/630d71db2fe9f95e2526 to your computer and use it in GitHub Desktop.
MIPS gdb cheat sheet
username@mips:~/mips_source gcc <*.s> -o <output name>
username@mips:~/mips_source gdb <output name>
-----GBD OUTPUT-----
(gdb) b main ----create a breakpoint----
(gdb) run ----run the program----
Breakpoint 1, 0x00400654 in main ()
(gdb) set step-mode on ----be able to step through
(gdb) disas ----show dissasembly
Dump of assembler code for function main:
-----GDB DISSASEMBLY-----
(gdb) s ----step through----
(gdb) info registers ----show the info in all registers----
------GDB PRINTS ALL REGISTERS------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment