From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16697 invoked by alias); 25 Feb 2010 18:26:57 -0000 Received: (qmail 16679 invoked by uid 22791); 25 Feb 2010 18:26:56 -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; Thu, 25 Feb 2010 18:26:51 +0000 Received: (qmail 24467 invoked from network); 25 Feb 2010 18:26:50 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Feb 2010 18:26:50 -0000 From: Pedro Alves To: gdb-patches@sourceware.org, tromey@redhat.com Subject: Re: RFC: fix bug with std::terminate handler Date: Thu, 25 Feb 2010 18:26:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002251826.46359.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/msg00627.txt.bz2 On Thursday 25 February 2010 18:11:44, Tom Tromey wrote: > call_function_by_hand installs a momentary breakpoint on std::terminate, > and then deletes it later. However, this can cause a double deletion of > the breakpoint. In the bug, the called function is dlopen, which causes > gdb to enter solib_add, which calls breakpoint_re_set, deleting the > momentary breakpoint. Why doesn't stepping over "dlopen", with "(gdb) next" cause the same problem with step-resume breakpoints? -- Pedro Alves