#Conditional watchpoint stops despite specified condition
4 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
isnan() is not a C function, but a preprocessor macro, which are not available by default to gdb.
See this blog post that discusses your exact problem:
https://ro-che.info/articles/2020-01-11-gdb-break-on-nan
Recently I had to debug a case where, somewhere during a
numerically-intensive computation (solving an ordinary differential
equation), a value would become NaN (“not a number”). This
happens, for example, when taking a logarithm or a square root of a
negative number, dividing 0 by 0, stuff like that. However, I had no
idea where and why NaNs ap...
I have seen this. Tried one of the solutions. I'm gonna do some more testing today, I think I did it wrong yesterday