Question: F . 4 Debugging Session i ) Load the program to be debugged with gdb . / cVirX ii ) List the source code of
F Debugging Session i Load the program to be debugged with gdb cVirX ii List the source code of the function to be debugged with l main; display the next lines with l iii Set a breakpoint at line with b iv Run the program providing its arguments, until the breakpoint at line with r arg arg arg v Print argc with p argc and the first argument with p argv vi Display list of function arguments with info args vii Execute the next instruction with sstep and print V p V viii Execute the puts function with nnext without stepping inside the function ix Display stack frame of main with info frame and analyze it x Display local variables in the stack frame of main with info locals and analyze it xi Set a breakpoint at line with b xii Execute the program until the breakpoint witn ccontinue xiii Examine the context of function farguments local variables xiv Use relevant instructions to examine the context of function farguments local variables xv Stop debugging with qquit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
