Question: Debugging without source code In the second pan you will usegdbto figure out how to get a program to run to completion. The challenge in

Debugging without source code In the second pan you will usegdbto figure out how to get a program to run to completion. The challenge in this case is that you will not be given the source code for the program. Instead, you will simply have to run the program and figure out what input is required. For this part of the assignment, you should use the command-line version ofgdband record your session into the file MySession. txt that you then upload to the csportal. Start thescriptcommand to record your session (script MySession. txt) Download a binary program (with no source code) and get it to run to completion. You can download the binary program a. out to your VM using thewgetcommand: wgethttp://www.cs.uky.edu/-raphael/courses/CS485/lab3/a.out chmod a+rx a.out Thechmodprogram makes sure the file is readable and executable. You should first look at the assembly language for the program: objdump -d a.out >a.s vim a.s Look for the main procedure and follow the execution from that point onward. One quick and simple way to get some feeling for the flow of control is to find all lines in the file that jump to, or call, named procedures. Because objdump prints all procedure names inside of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
