From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20447 invoked by alias); 22 May 2013 04:47:01 -0000 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 Received: (qmail 20346 invoked by uid 89); 22 May 2013 04:46:54 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO autolearn=ham version=3.3.1 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 22 May 2013 04:46:54 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7DD692EE71; Wed, 22 May 2013 00:46:52 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gt-3Go8UMBWX; Wed, 22 May 2013 00:46:52 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 1D1012EAA2; Wed, 22 May 2013 00:46:52 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 8E4E7C376B; Wed, 22 May 2013 08:46:46 +0400 (RET) Date: Wed, 22 May 2013 04:47:00 -0000 From: Joel Brobecker To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Support temporary breakpoints in runto_main. Message-ID: <20130522044646.GY4017@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-05/txt/msg00807.txt.bz2 > If I imagine I'm new to gdb and see the name runto_main I can well > imagine not expecting the implementation of that command to leave the > breakpoint behind. Leaving the breakpoint behind is not something I > would expect from that name. FWIW, the AdaCore's gdb-testsuite framework defines a "runto" method, and it does set a temporary breakpoint by default (with the option of making it permanent). Same reasoning as yours went into the "design" of this method's interface. Not sure if it's worth spending time changing this, but I would welcome the change... -- Joel