Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I was required to debug this even though no bugs exist. whay happened when you try to run the program to completion? and I would

image text in transcribed

I was required to debug this even though no bugs exist. whay happened when you try to run the program to completion?

image text in transcribed

and I would also like to know

"explain how you run CGDB to completion on the executable created for this function without getting stuck"

thank you!!

#include #define MAX_LEN 88 int main (int argc, char *arqv char a word [MAX LEN]: printf ("what's your name? "); fgets (a word, MAX LEN, stdin); printf( "Hello, %s! hope you have a wonderful day. ", a-word); return Let's see what happens if your program requires user input and you try to run GDB on it. First, run the program defined by interactive hello.c to talk to an overly friendly program. gcc +g -o int hello interactive hello.c s ./int_hello Now, we're going to try to debug it (even though there really are no bugs). $ gab int hello What happens when you try to run the program to completion? The purpose of this exercise is to make you unafraid of running the debugger even when your program needs user input

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions