Bug 81732 - bad handling of stopped process while quitting in gdb
bad handling of stopped process while quitting in gdb
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: gdb (Show other bugs)
ia64 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnston
Jay Turner
Depends On:
  Show dependency treegraph
Reported: 2003-01-13 11:04 EST by Magnus Ihse
Modified: 2015-01-07 19:02 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-08-22 15:09:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Magnus Ihse 2003-01-13 11:04:54 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
Start gdb and attach to a running process.

Stop the process from another shell. Now try to quit gdb:

(gdb) quit
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) y
Can't detach LWP 6865: No such process

To quit gdb, you need to do "kill" first. (Unless you despair and kill gdb from 
another shell). A quit should never fail.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
See description.

Actual Results:  gdb says:
Can't detach LWP 6865: No such process
and doesn't quit.

Expected Results:  gdb should have quit.

Additional info:
Comment 1 Jeff Johnston 2003-08-22 15:09:33 EDT
Fixed in latest release.  Removed error() call for
detach failure.

Note You need to log in before you can comment on or make changes to this bug.