gdb breakpoints with conditions on backtrace

from blog osa1.net - All posts, | ↗ original
Being able so specify conditions in gdb breakpoints is quite useful. For example, if I’m interested in mmap(NULL, ...) calls I can do break mmap if addr == 0 and gdb doesn’t break on mmap when the addr == 0 condition doesn’t hold. I’ve used this many times to great effect, but it’s not always sufficient, sometimes I need to break not when a...