'what's the impact of CTL+C in gdb?
A simple C application runs a loop like this:
while(func(xxx)) {
usleep(10);
}
the func will return 0 after a few seconds, while none-zero before that.
When I run it in GDB on ubuntu, it will falls in dead loop. But if I press CTC+C and continue running without any other operation, it will quit the loop. so anyone knows the possible reason?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
