Homework 11

  1. If you intend to use gdb, what flag must you use when compiling a program, and what does that flag do? (2 points)
  2. What is a breakpoint? What are breakpoints used for? (2 points)
  3. How are breakpoints implemented by a debugger? There are two correct answers for this question, one for interpretive debuggers, and one for direct execution debuggers like gdb. Either answer is fine. (2 points)
  4. What does bringing the failure close to the fault mean, and how does it help you find bugs? (4 points)

Submission

Please submit homework 11 by placing your answers in a text file (not MS Word, not PDF, just plain text) and uploading the file to the moodle.