From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109186 invoked by alias); 27 Feb 2015 02:22:11 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 109176 invoked by uid 89); 27 Feb 2015 02:22:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,KAM_LIVE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_BLOGSPOT autolearn=no version=3.3.2 X-HELO: mail-oi0-f51.google.com Received: from mail-oi0-f51.google.com (HELO mail-oi0-f51.google.com) (209.85.218.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 27 Feb 2015 02:22:09 +0000 Received: by mail-oi0-f51.google.com with SMTP id g201so13305142oib.10 for ; Thu, 26 Feb 2015 18:22:07 -0800 (PST) X-Received: by 10.60.46.193 with SMTP id x1mr8512827oem.0.1425003727448; Thu, 26 Feb 2015 18:22:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.217.193 with HTTP; Thu, 26 Feb 2015 18:21:47 -0800 (PST) In-Reply-To: References: From: kamaraju kusumanchi Date: Fri, 27 Feb 2015 18:38:00 -0000 Message-ID: Subject: Re: stack specific breakpoint To: Doug Evans Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00077.txt.bz2 On Tue, Feb 24, 2015 at 1:07 AM, kamaraju kusumanchi wrote: >> >> (gdb) break funcA if $_caller_is("funcB") >> >> https://sourceware.org/gdb/current/onlinedocs/gdb/Convenience-Funs.html#Convenience-Funs >> >> This requires gdb 7.9 configured with python support. > > Thanks. I will try to compile gdb 7.9 then and see how it goes. > It works great! Thanks for the pointer in the right direction. I have documented the whole thing in http://raju.shoutwiki.com/wiki/Stack_specific_breakpoints_in_gdb with some sample code and commands to compile a local version of gdb. I thought that having all the instructions in one place might help someone. thanks raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/