TotalView C Serial Exercise 3 - Tips

Tips

  • Load the program in TotalView.
  • Double click on the data structure "mydata" in the stack frame
  • In the window for the data structure "mydata", you will see a list of all the variables that make up the structure. Double click on veca2 to view the contents of the array.
  • Click the "Step" button several times. Watch all the values in the array veca2. The value of the index "i" is visible in the stack frame window.
  • When does the array veca2 become corrupt?
  • What will fix the problem?