Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7793051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:21:52+00:00 2026-06-01T22:21:52+00:00

I was trying a program with GDB, I did a ‘break x’ and then

  • 0

I was trying a program with GDB, I did a ‘break x’ and then was running step by step. So when I want to quit, I would say ‘quit’, it would return an ‘inferior process will be killed warning message’. What happens if I do ‘Y’. Because I want to somehow come out of the process. And what would happen If I attach a running process and quit. Will it be detached or the running process will be exited? Different sources give different ideas. Please advise.

Also, when I try to run a program it says, and I am running the standard program from peter’s tutorial. It gives this error when I do an step to line 16.

 _IO_puts (str=0x40075e "In display():") at ioputs.c:35
 35 ioputs.c: No such file or directory.
     in ioputs.c

Program

  14 void display(int z, int *zptr) {
  15        printf("In display():\n");
  **16       printf("   z is %d and is stored at %p.\n", z, &z);**
  17       printf("   zptr points to %p which holds %d.\n", zptr, *zptr);
  18   }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:21:53+00:00Added an answer on June 1, 2026 at 10:21 pm

    If you run the process in the debugger and quit the debugger, the running program is killed (just as you would with SIGKILL). To end the program normally, say continue (possibly with a number large of ignores) until the program is done.

    If you attach the debugger to a running program and exit the debugger, the debugger will just detach and the program continues running, unless you kill it beforehand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to debug my program using NSZombie. The debugger did return me
While I trying to debug a 'C' program with gdb, I always get the
I attached to a program with gdb in OSX and I want to use
I am trying to debug (using gdb) a multi-threaded program, which uses POSIX threads.
I am trying to set a breakpoint in linux in gdb for a program
I have a simple c++ program I am trying to debug, but gdb cannot
I am trying to debug, with gdb, a plugin to a program. I saw
I'm trying to program a quicksort-ish algorithm using the Dutch national flag algorithm .
I am trying to program a converter in iOS. The user enters values into
I am trying to program an app for the Iphone using Xcode 4.3.1, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.