The situation is: I've defined a series of breakpoints(say, 3 breakpoints), and when gdb is set with 'continue' waiting for any 1 of the 3 BPs, it would hit any one depending on other conditionals I set.
Problem is: When there are conditions that doesn't 'hit' any of the 3 BPs I defined, gdb seems stuck waiting indefinitely without returning anything.
Question is: Do we have option for gdb to wait for some 't' time trying to hit any breakpoint, and if 't' has elapsed then it would simply state so or return some meaningful value? Or better, is there a features to NOT 'indefinitely wait'?
The code will look like:
switch(expression) {
case 1 :
statement(s); /*Break 1 */
case 2 :
statement(s); /*Break 2 */
case 3 :
statement(s); /*Break 3 */
case 4 :
statement(s); /*no breakpoint allowed or a constraint */
default :
statement(s);
}