help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB to detect NAN


From: swagat
Subject: GDB to detect NAN
Date: 30 Jun 2006 22:03:01 -0700
User-agent: G2/0.2

Hi all!

I don't know if it is the right forum to ask for gdb problems. IF it is
not, please do let me know.

In my c++ program, a particular variable takes up "nan" value after
sometime. I want my program to stop executing at a line where it takes
up a NAN value.

How can I use GDB to perform this task?

When I use a command like

(gdb) break main.cpp:283 if x == nan
reakpoint 2 at 0x8049ff3: file main.cpp, line 283.
c
it continues the program and then gives out following message:

Error in testing breakpoint condition:
Invalid type combination in equality test.



Please help.


Regards,
swagat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]