From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15427 invoked by alias); 9 Apr 2007 07:06:06 -0000 Received: (qmail 15419 invoked by uid 22791); 9 Apr 2007 07:06:05 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (213.8.233.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Apr 2007 08:06:01 +0100 Received: from HOME-C4E4A596F7 (IGLD-84-228-248-28.inter.net.il [84.228.248.28]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id GLW77211 (AUTH halo1); Mon, 9 Apr 2007 10:05:57 +0300 (IDT) Date: Mon, 09 Apr 2007 07:06:00 -0000 Message-Id: From: Eli Zaretskii To: Pedro Alves CC: gdb-patches@sourceware.org In-reply-to: <46199F9C.1060803@portugalmail.pt> (message from Pedro Alves on Mon, 09 Apr 2007 03:06:20 +0100) Subject: Re: [Cygwin] Fix for: detaching crashes the inferior. Reply-to: Eli Zaretskii References: <4618D3F7.3040700@portugalmail.pt> <4619748C.5080007@portugalmail.pt> <46199F9C.1060803@portugalmail.pt> X-IsSubscribed: yes 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/msg00064.txt.bz2 > 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...