Some of you have probably used debuggers, perhaps extensively. But my teacher's intuition tells me that most of you do most of your debugging using the time-honored technique of printing stuff out, and have had at most a very brief experience with debuggers. Today's lab is intended to give you an elementary introduction to three debugging tools: gdb, ddd, and insure. You'll get a quick introduction to make (valuable, but not really a debugging tool) as a bonus. If you already know all this stuff, you should use your time investigating the more advanced features of these tools.
Do sections I, II, and III of this CS127 lab.
Work through the Sample Session section of GNU's Debugging with DDD tutorial.
Done? Check out the gprof manual. Try to figure out what gprof is, and how to use it. I'll discuss and demonstrate gprof in class on Monday.