This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

debugger Watch window cannot show the true value

Hi,
I am using GNUARM 4.1.1, and the MCB2300 EVB for developement with the newest version V3.53 of uV3.
I am having a problem with the debugger watch window that it is not provide the true value of the variables, however, when I step throught the disassembly window, and monitor the memory window in the same time, the variables address and value are correct. What is the problem? Thanks in advance.

Raymond Ling
Integrated Corperation

  • Hi Raymond,

    I believe this is a longstanding bug in the Debugger - it has certainly been infuriating me for over a year.

    In my experience, it usually only applies to either automatic variables or when there are more than four parameters to a function. Global variables are usually displayed correctly.

    As you say, the code and the values used are correct - it's just the display that is wrong.

    Sometimes the value which is displayed by highlighting the variable in the source is correct, even when the Watch window value is not. I suspect the bug has to do with the values in the Watch windows not being updated properly as you step through the code.

    Can anyone from Keil comment on this one ?

    David.

  • The real problem are the constant changes of the interpretation of the ELF/DWARF format. Also together with high optimization of the Compiler the debug information seems to be incorrect (and hence the debugger cannot show correct values).

    What we really need is a test case that shows this problem. Just email the an example to support.intl@keil.com

  • Hi Rreinhard,

    The problem occurs with Keil's own RealView compiler too ! It's not specific to the GNU toolchain.

    I'll try and send a minimal example, but I've mostly only seen the problem with larger programs.

    David.

  • Thanks for the reply.

    I used "static" on the local function variable to solve the problem at this memont(I know this is the debugger problem). However, I used preivous version of keil uV3, I don't recall I have experience this problem before.

    Thanks