This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: stack specific breakpoint
- From: kamaraju kusumanchi <raju dot mailinglists at gmail dot com>
- To: Doug Evans <dje at google dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 26 Feb 2015 21:21:47 -0500
- Subject: Re: stack specific breakpoint
- Authentication-results: sourceware.org; auth=none
- References: <CABpbYadoRdLsKn+iCWPJwkeYg_1JDGbXxY0geKsiAynqGpoVrg at mail dot gmail dot com> <CADPb22SAsb5T3z1mG060ANZv=aQUVSvQzcX=juheWyjc_f4TzA at mail dot gmail dot com> <CABpbYadTSgwsS0HNb-yDV7jfrh_ZHEsdEemtxrXTB0rTp8YXaQ at mail dot gmail dot com>
On Tue, Feb 24, 2015 at 1:07 AM, kamaraju kusumanchi
<raju.mailinglists@gmail.com> 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/