Lesson 16: It's Turtles All the Way Down

Outline:

  1. Why we care about memory: Heartbleed
  2. Working with the stack
    • push/pop
    • function calls and the stack
  3. Assignment 5
  4. Lab 5: debugging C with gdb—try this yourself to get used to using gdb

Reading assignment (to be completed by the next class):

  • Assignment 5 – read it and fill out the form to get your own zoo!
  • Explore the debug_gdb executable using the tools mentioned in the Assignment 5 writeup
  • Bryant & O’Halloran Sec. 3.6.8 (p. 232–238)
  • Bryant & O’Halloran Sec. 3.8.1–3.8.2 (p. 255–258)