I'm using idb in gdb mode to debug a code. I have a REAL*8 variable which is an array of length 50 that is changed a lot through the code. I would like to watch this variable and make the debugger stop only if some position in that array receives a negative value.
I know that I have to use watch if for doing this, but I don't know what syntax I have to use exactly. Can someone help me?