We're in the process of debugging a cloth simulator written in C++ and a common problem is when something modifies velocities to be NaN
or some large number.
Currently, this the best way we have to test for this is calling test_velocities_for_NaN()
which is slow and must be called manually.
Is there any way to automate this process using GDB? I.e. being able to break if any value in an array of floats is modified to be either NaN
or some value greater than a set constant?