From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4273 invoked by alias); 14 Dec 2010 15:24:02 -0000 Received: (qmail 4258 invoked by uid 22791); 14 Dec 2010 15:24:01 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Dec 2010 15:23:56 +0000 Received: (qmail 8220 invoked from network); 14 Dec 2010 15:23:54 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Dec 2010 15:23:54 -0000 From: Pedro Alves To: Tom Tromey Subject: Re: segfault: what should happen when I remove an inferior that is running? Date: Tue, 14 Dec 2010 15:24:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.33-29-realtime; KDE/4.4.5; x86_64; ; ) Cc: Marc Khouzam , "gdb@sourceware.org" References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201012141523.51109.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00039.txt.bz2 On Tuesday 14 December 2010 15:08:31, Tom Tromey wrote: > Removes the inferior INFNO. It is not possible to remove an > inferior that is running with this command. > > I think this means we are missing an error check somewhere. Yeah. I guess we could also offer to kill it or some such, but I guess I must have thought that it'd be simpler to just error out. (either way, the user needs to take further action, so erroring out is simpler.) -- Pedro Alves