This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stack specific breakpoint


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]