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

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 all you need to do is usegrepto find them. For example: grep '

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!