From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29017 invoked by alias); 5 Mar 2008 17:42:45 -0000 Received: (qmail 29006 invoked by uid 22791); 5 Mar 2008 17:42:45 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Mar 2008 17:42:22 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m25HgKlU008779 for ; Wed, 5 Mar 2008 12:42:20 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m25HgKWN026975 for ; Wed, 5 Mar 2008 12:42:20 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m25HgI3g007044; Wed, 5 Mar 2008 12:42:19 -0500 Message-ID: <47CEDB6F.2090301@redhat.com> Date: Wed, 05 Mar 2008 17:42:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Tom Tromey CC: frysk@sourceware.org Subject: Re: patch to add breakpoint commands References: <18382.49031.893322.680963@fleche.redhat.com> In-Reply-To: <18382.49031.893322.680963@fleche.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00131.txt.bz2 Tom Tromey wrote: > Here's a patch that adds breakpoint commands. I recommend not > committing it, because it is ugly, but I thought I'd post it so folks > can see what needs to be done. > > Problems with this: > > * I really wanted to give commands a "-silent" option (I never liked > gdb's "'silent' is a magical first command" thing) -- but doing this > would mean hooking into BreakpointCommand. > I have to agree; hpd describes this entire group as "actionpoints" and lists: - breakpoints - watchpoints - barrier and we've suggestions for additions such as: - catch syscall - catch dlopen (?) - catch signal - catch fork - catch clone - catch exec for all of these they have several things: - the commands to run when the event is triggered - should the hit be verbose or silent - should the end result be to stop or continue (attribute or not?) - ? that can be characterised as attributes; as, dare I suggest, you're reading into the intent of the HPD, the way to do this is would be with -silent option to the commands that create and edit (see actions) actionpoints. Andrew