I'm wanting to set a breakpoint on a function parameter if it is greater than a certain value. Dummy code below:
int main(void)
{
    uint64_t num = 123456;
    uint64_t x   = 847534;
    uint64_t other = (num*x) - (x/num);
    .... other stuff here (multithreaded stuff)
    calc(other);
}
void calc(uint64_t size)
{
    ...do some stuff with size
}
I've tried to set a breakpoint by:
(gdb) b calc if size == 852479
but it does not know what size is since it is a parameter I'm guessing. How would I break if the parameter equals a certain number. It is NOT an option to break on all the calls to this function because it gets called a billion times in the multithreaded environment.