From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9198 invoked by alias); 19 Sep 2011 17:09:22 -0000 Received: (qmail 9188 invoked by uid 22791); 19 Sep 2011 17:09:21 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,TW_BP,TW_TB X-Spam-Check-By: sourceware.org Received: from elasmtp-galgo.atl.sa.earthlink.net (HELO elasmtp-galgo.atl.sa.earthlink.net) (209.86.89.61) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Sep 2011 17:09:08 +0000 Received: from [70.170.59.51] (helo=macbook2.local) by elasmtp-galgo.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1R5hLA-0003T4-AB for gdb-patches@sourceware.org; Mon, 19 Sep 2011 13:09:08 -0400 Message-ID: <4E777733.8010107@earthlink.net> Date: Mon, 19 Sep 2011 17:26:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH] Add command resetbpnum for reset $bpnum References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da9408e72b0a53c3edcae69d3e86dd96a0ae7350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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: 2011-09/txt/msg00361.txt.bz2 On 9/18/11 9:16 AM, Hui Zhu wrote: > Hi, > > I found we never set the breakpoint number back in GDB. And sometime, > I fount that user need reset $bpnum to the current last number. > So I make a patch add command resetbpnum for reset $bpnum to the last > number of the current breakpoints. > > I tend to think this would not be a good idea. Although I don't know that we have a formal requirement that breakpoint numbers are all unique within a session, it's certainly a common assumption that we rely on when looking at user transcripts, testsuite runs, etc. So before breaking before one of the longest-standing UI design decisions in GDB, it seems like we ought to get a little more understanding of why a user might want to reset breakpoint numbering. Stan stan@codesourcery.com