From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28033 invoked by alias); 26 Feb 2010 01:52:44 -0000 Received: (qmail 27876 invoked by uid 22791); 26 Feb 2010 01:52:42 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 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; Fri, 26 Feb 2010 01:52:37 +0000 Received: (qmail 4820 invoked from network); 26 Feb 2010 01:52:35 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 Feb 2010 01:52:35 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: RFC: fix bug with std::terminate handler Date: Fri, 26 Feb 2010 01:52:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) Cc: Tom Tromey References: <201002251949.36154.pedro@codesourcery.com> In-Reply-To: <201002251949.36154.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002260152.32719.pedro@codesourcery.com> 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: 2010-02/txt/msg00644.txt.bz2 Also see a couple of PRs I just opened related to this. A real issue/bug, PR11328 GDB can miss catching std::terminate calls. Making breakpoint resetting not wipe the std::terminate breakpoint should fix this as well. Your patch wouldn't fix this. Cosmetic issue, PR11327: With your patch, gdb would show "Breakpoint -5", or some other negative number instead. This must have been the problem that let to the make_breakpoint_silen workaround I mentioned before. -- Pedro Alves