From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29156 invoked by alias); 10 Apr 2007 18:35:40 -0000 Received: (qmail 29148 invoked by uid 22791); 10 Apr 2007 18:35:40 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.palmsource.com (HELO mx1.palmsource.com) (12.7.175.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Apr 2007 19:35:31 +0100 Received: from localhost (localhost [127.0.0.1]) by localhost.domain.tld (Postfix) with ESMTP id 8F7D15EFEC; Tue, 10 Apr 2007 11:35:29 -0700 (PDT) Received: from mx1.palmsource.com ([127.0.0.1]) by localhost (mx1.palmsource.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19141-02-2; Tue, 10 Apr 2007 11:35:28 -0700 (PDT) Received: from ussunex03.svl.access-company.com (ussunm001.palmsource.com [192.168.101.12]) by mx1.palmsource.com (Postfix) with ESMTP id 710D15EFCA; Tue, 10 Apr 2007 11:35:28 -0700 (PDT) Received: from 192.168.92.56 ([192.168.92.56]) by ussunex03.svl.access-company.com ([192.168.101.12]) via Exchange Front-End Server owa.access-company.com ([10.0.20.19]) with Microsoft Exchange Server HTTP-DAV ; Tue, 10 Apr 2007 18:36:55 +0000 Received: from svmsnyderlnx by owa.access-company.com; 10 Apr 2007 11:35:30 -0700 Subject: Re: [Cygwin] Fix for: detaching crashes the inferior. From: Michael Snyder To: Pedro Alves Cc: Eli Zaretskii , gdb-patches@sourceware.org In-Reply-To: <4053daab0704100333j194f42b8xecc9a81a0fe479d6@mail.gmail.com> References: <4618D3F7.3040700@portugalmail.pt> <4619748C.5080007@portugalmail.pt> <46199F9C.1060803@portugalmail.pt> <4053daab0704100333j194f42b8xecc9a81a0fe479d6@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 10 Apr 2007 18:35:00 -0000 Message-Id: <1176230129.10789.10.camel@svmsnyderlnx.palmsource.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00096.txt.bz2 On Tue, 2007-04-10 at 11:33 +0100, Pedro Alves wrote: > On 4/9/07, Eli Zaretskii wrote: > > > Date: Mon, 09 Apr 2007 03:06:20 +0100 > > > From: Pedro Alves > > > > > > Is there a case where we can get to to_detach > > > without remove_breakpoints being called? I don't think there > > > is - we always get here through normal_stop, right? > > > > If you think this must be so, but are unsure, you can add a flag that > > is turned off in remove_breakpoints and turned on when a breakpoint is > > set. Then, in to_detach, if the flag is on, you can scream bloody > > murder (and even abort(), if you think it's fatal). Once users start > > using the modified version, you will soon know whether the assumption > > was wrong... > > > > :) Thanks for the hint, I'll try to do that. > > I think that gdb by design always removes the breakpoints from the > inferior when it stops, but it would be nice if someone would confirm > or unconfirm this. GDB by design always removes the beakpoints from the inferior when it stops. ;-)