Advertisement
wavec022

lesson 7 gdb

Sep 2nd, 2020 (edited)
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. GDB is a debugger, cool and good
  2.  
  3. add the -g flag in the makefile BEFORE the -o flag
  4.  
  5. gdb filename
  6.  
  7. use list functionname to print that shit out
  8.  
  9. use break functionname to add breakpoints to go through step by step
  10. use print varname to print out variables and shit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement