0

I am not able to set value to any variables in GPS debugger. I am able to print the value or display the value but I am not able to set (change) the value for any of the variables.

Could it be because of building with 'O2' optimizations?

If I right click a variable and check,'view memory at address of variable', there is no specific content, but only '-------' hyphens exist.

boon
  • 345
  • 1
  • 4
  • 11
  • Try building at Og (optimise for debuggability) and find out. –  Apr 24 '18 at 12:07
  • I tried running, but could not still set value. – boon Apr 24 '18 at 13:38
  • 1
    @Brian, Actually `-Og` means to optimise a bit, but retain values for debuggability - but not necessarily past their last use in a subprogram. `-O0` might be better. – Simon Wright Apr 24 '18 at 14:00
  • Simon, I tried running with -O0, still could not set value to variables – boon Apr 26 '18 at 07:10
  • do you have any actual data to help us out ? Like : code sample, GPS version, compiler version and compile/link options (eg : the .gpr content) – LoneWanderer Apr 28 '18 at 13:12

0 Answers0