Question: CSCE 215 Unix/Linux Fundamentals Fall 2017 Assignment 4 5 Points Due: September 22, 2017 (5pm) Overview In this assignment, you will use make to modify

CSCE 215 Unix/Linux Fundamentals Fall 2017 Assignment 4

5 Points Due: September 22, 2017 (5pm)

Overview In this assignment, you will

use make to modify a c++ program and

gdb a debugging tool.

Part 1 From the course website (or the departmental dropbox) download the program source files for the project myname. You can also use GIT. [git clone URL]

Part 2: myname program (5 points)

1. Using your favorite text editor, modify the source code to print out your name instead of mine when the binary file is executed. Hint: YOU ARE NOT THOMAS THE TANK ENGINE

2. Modify the makefile to include a rule that creates a backup of the source files, makefile, and readme in an archive directory in your home directory structure. Submit a compressed, archived tar file [yourUserID].assignment4_1.tar.[Z,gz] with your modified source code.

3. Use the gdb debugger to step through the program.

Check to ensure the Makefile is modified to allow for debugging. Submit a text file [yourUserID].assignment4_2.txt containing the gdb output for the following sequence of commands:

gdb myname

start

step [issue this command until you get the program exited normally message]

quit

Submission

This time, there should be two files that you are uploading [yourUserID].assingment4_1.tar.[Z,gz] and [yourUserID].assingment4_2.txt

When you have finished, submit the files using the departmental dropbox.

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!