Can we set a GDB breakpoint on a function such that it will break into only if the function argument matches the value specified? Ex
int foo(int i) { return i*i; } int main() { foo(0); ................ foo(9); } How do I set a breakpoint on foo only when the argument i of foo is 5?