Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CSCE 215 – Unix/Linux Fundamentals Fall 2017 – Assignment 4 5 Points Due: Septem

ID: 3890987 • Letter: C

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 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.

Explanation / Answer

{ "name": "Win32", "includePath": [ "${workspaceRoot}" ], "defines": [ "_DEBUG", "UNICODE" ], "intelliSenseMode": "msvc-x64", "browse": { "path": [ "${workspaceRoot}", "C:\MinGW\lib\gcc\mingw32\6.3.0\include\c++" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" } } { "version": "2.0.0", "tasks": [ { "taskName": "build hello world", "type": "shell", "command": "g++", "args": [ "-g", "helloworld.cpp" ] } ] }