1.7. Homework Submission¶
Your writeup should follow the writeup guidelines. Your writeup should include the following:
Tools
Describe how you do the following in gdb (each 3 lines max.):
Add a breakpoint.
Remove a breakpoint.
Inspect a variable value.
Step through program execution without a breakpoint.
Debug
Provide the correct output from the terminal.
Provide code for the corrected function including the Makefile.
Include a description of how you used the tools to identify the bug. (Or confirm a hypothesis you formed about the location of the bug) (5 lines max.)
Answer the question about GDB. (3 lines max.)
Provide code for the
insert_in_order
function, including Makefile.
C – answer the questions about C pointers, compilers, and executables from the C Refresher section.