Re: stack specific breakpoint
kamaraju kusumanchi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CABpbYacdfmEnHL5Br-gdX++EeDwvSVxuz4hSy4HCqk-D5byd7g@mail.gmail.com> |
On Tue, Feb 24, 2015 at 1:07 AM, kamaraju kusumanchi <[email protected]> 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/