Is there anyway to set a breakpoint when a variable reaches a specific value in GDB? For example, a variable take these values: 1 4 8 10 3 2 9 13 11 and I want to set a breakpoint when this variable reaches 9.
Yes, set breakpoint with condition.
break ... if value==9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With