Commit d6477533 authored by kjc015's avatar kjc015
Browse files

Lab11, Exercise 1, Complete

parent 0bf49ce4
Kyle Chrysler
Section 63
1. The -g flag generates debug information.
2. You can use break *line number* to make a breakpoint at a certain line.
3. You can use next to execute the next line of code after stopping at a breakpoint.
4. Step debugs the code inside of the function.
5. You can use continue or c to resume a program after stopping at a breakpoint.
6. To see the value of a variable, you can use print.
7. You can use info locals to see a list of all variables in the current function.
8. Backtrace prints a trace of how a program got to where it is.
#include <stdio.h>
#include "list.h"
int main(int argc, char* argv[]){
int i;
node* head = mk_node(1);
for (i=0; i<8; i++) {
ll_append(head, mk_node(i+10));
}
ll_print(head);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment