Question: I can run the the program and set the breakpoint at ll_equall() and run. I do not know what do after that and how to
I can run the the program and set the breakpoint at ll_equall() and run. I do not know what do after that and how to fix the program or what is wrong with the program.



Consider the program 11_equal.c. Compile and run the program, and experiment with it. By default, it will give you the following result: gcc -g-o 1l_equal 1l_equal.c ./11_equal equal test 1 result1 Segmentation fault Figure out what's causing that segmentation fault! Start gdb on the program, following the instructions for compilation in exercise 1. We recommend setting a breakpoint in the 11_ equal () function. When the debugger stops at the breakpoint, try stepping through the program to see if you can figure out what's causing the error Hint: pay attention to the values of the pointers a and b in the function (print them!). Are they always pointed to the right address? Hint 2: Look at the source code in main to see the structure of the nodes and what exactly is being passed into 11_equal ILequal.c #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
