From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1544 invoked by alias); 1 Mar 2008 07:05:10 -0000 Received: (qmail 1435 invoked by uid 22791); 1 Mar 2008 07:05:07 -0000 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; Sat, 01 Mar 2008 07:04:49 +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 m2174ldo011071 for ; Sat, 1 Mar 2008 02:04:47 -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 m2174ljf025985 for ; Sat, 1 Mar 2008 02:04:47 -0500 Received: from opsy.redhat.com (vpn-14-132.rdu.redhat.com [10.11.14.132]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m2174lcC025537; Sat, 1 Mar 2008 02:04:47 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id DC1733780C1; Fri, 29 Feb 2008 23:14:45 -0700 (MST) To: gdb-patches@sources.redhat.com Subject: Re: RFC add "convenience functions" to gdb References: From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Sat, 01 Mar 2008 07:05:00 -0000 In-Reply-To: (Tom Tromey's message of "Fri\, 29 Feb 2008 21\:59\:46 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2008-03/txt/msg00002.txt.bz2 >>>>> "Tom" == Tom Tromey writes: Tom> For quite a while now I've wanted to be able to make a breakpoint Tom> conditional on the current frame's caller. I was never able to think Tom> of a way to do this. Of course, after sending this, I remembered that Roland told me how, by setting multiple breakpoints and having the breakpoint in the outer frame set a convenience variable. I never remember this when actually debugging, though. And, I think convenience functions will have other uses. So, please consider the patch even though my example was a bad one. Tom