The command time is used to measure how long a program takes, how much of that time is spent in OS related tasks and how much is spent in user space. Instructions Step 1. Using a debugger Debugging tools are important to learn in order to find errors in code quickly. There are several debuggers available to you, including gdb, dbx, and workshop. We will be working with the first debugger gdb in this lab.
Instructions Copy the tar file debug.tar into a new directory.
If you do not use a new directory, you risk overwriting files used in other parts of this assignment. This file contains everything you need for this part. This program was not written verywell, and while it will compile it contains 2 bugs which will cause it to core dump. What you need to do is find the lines in which the program core dumps using the gdb debugger. Core Files First type bugs to run the program.