I have let's say 10 files file1,file2 ... file10 and each file has a function named fnCaller() which calls to a function say rmCaller(). I want to break only when this rmCaller() is called from fnCaller() in file4.Is it possible?
I have let's say 10 files file1,file2 ... file10 and each file has a function named fnCaller() which calls to a function say rmCaller(). I want to break only when this rmCaller() is called from fnCaller() in file4.Is it possible?
You can use conditional breakpoints convenience functions:
(gdb) break myAddress
Breakpoint 1 at <myAddress>
(gdb) cond 1 $_caller_is("myfunction1") && $_caller_is("myfunction2") ...