title: How to monitor variables in GDB and log it if it meets certain conditions?
body: <p>I would like to know if there is any way in which I can monitor a value of a variable until for example a counter reaches a value and then log the output of variable value during each counter value?</p>