From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5269 invoked by alias); 9 Oct 2003 19:33:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5261 invoked from network); 9 Oct 2003 19:33:17 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Oct 2003 19:33:17 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h99JXGM12777 for ; Thu, 9 Oct 2003 15:33:16 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h99JXFD24014; Thu, 9 Oct 2003 15:33:15 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h99JXEi31980; Thu, 9 Oct 2003 12:33:14 -0700 Message-ID: <3F85B7FA.40404@redhat.com> Date: Thu, 09 Oct 2003 19:33:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb-patches@sources.redhat.com Subject: Re: RFA: Breakpoint infrastructure cleanups [0/8] References: <20031008165534.GA8718@nevyn.them.org> <20031008190502.GA13579@nevyn.them.org> <20031009140848.GA29621@nevyn.them.org> In-Reply-To: <20031009140848.GA29621@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00307.txt.bz2 Daniel Jacobowitz wrote: > On Thu, Oct 09, 2003 at 08:10:46AM +0200, Eli Zaretskii wrote: > >>>Date: Wed, 8 Oct 2003 15:05:02 -0400 >>>From: Daniel Jacobowitz >>> >>>>(gdb) info break >>>>Num Type Disp Enb Address What >>>>1 breakpoint keep y 0x08048354 in foo::foo (in-charge) at hello.c:8 >>>> 0x08048364 in foo::foo (not-in-charge) at hello.c:8 >>>>(gdb) >>> >>>Here's the problem that I see. >>> >>>For foo::foo, there are two of these things. Having them both in the >>>list would be nice. Really nice. >>> >>>For inline_accessor_fn there are 3.8 million. In addition to needing >>>to do a whole lot of work on GDB internals before we could survive this >>>(memory usage; ptrace thrashing inserting and removing them; linked >>>lists of breakpoints; and that's just the beginning) this has some >>>severe user interface implications. We don't want to print out all >>>those addresses by default! >>> >>>I'm open to suggestions on how to deal with this. >> >>How about a switch to "info break"? By default, show only the >>in-charge breakpoint, but if the user says "info break -all" or some >>such, show the other 3.8 million minus one. > > >>>From a user interface perspective, I got a really strong negative > pushback the last time I tried to add a switch to any GDB command. > OK, how about modeling after "info reg" vs. "info all-reg"? Giving us "info break" and a new "info all-break".