Last active
August 29, 2015 14:18
-
-
Save junr03/630d71db2fe9f95e2526 to your computer and use it in GitHub Desktop.
MIPS gdb cheat sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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