Altera_Forum
Honored Contributor
16 years agoNios II Eclipse Variable Watchpoint Not Working
I have never been able to get variable watchpoints to work correctly. For example, I have a function something like
int run_test() { int retval = 0; if(a) retval = 1; if(!b) retval = 1; if(b && c) retval = 1; return retval; } In Eclipse, if I put a watchpoint on retval and check the Write box, I expect the program to stop any time retval is written. However, I often get to the bottom of the function, retval has been written to a 1, and the program never stopped to tell me where it was happening. Has anyone else had this problem, and is there maybe some setting I'm missing? Thanks.