6.828 Lecture 2 - C & gdb

No lecture video, but there are two sets of slides and a reading req for some bits of K&R:


  • 500

  • Pointers add and subtract in increments of the base data’s length

  • 400

  • Use the extern keyword! Extends function’s visibility to all files in the program.

  • Use riscv64-unknown-elf-gdb, not gdb

  • finish/advance

  • Breakpoints / watchpoints

  • info/list

  • layout next

  • It is well worth your time to spend an hour learning more about how to use [gdb].

Edit