#Conditional watchpoint stops despite specified condition

4 messages · Page 1 of 1 (latest)

frigid ibex
#

Hello, I wanted to set a conditional breakpoint, if velocity.x is std::nan. However it appears the std::nan call is not really parsable. So what do I do about this? I get this message from GDB.

charred mantleBOT
#

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.

jagged thunder
# frigid ibex Hello, I wanted to set a conditional breakpoint, if velocity.x is std::nan. Howe...

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

frigid ibex