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

can't watch local variable

When I debug \Keil\ARM\RV30\RTL\Kernel\Examples\Measure\Measure.uv3,I want watch "cmdbuf[]" in Watch & Call Stack Window,when I use SARM.dll V1.5,watch data was right,but when I use SARM.dll V3.x,watch data was wrong.

Parents
  • Hi I posted too soon. The Watch does appear to be improved, the locals seem to work now where as before they didn't. But now if put a breakpoint after a string activity such as

    char cmdbuf [30];

    bla bla
    for (i = 0; cmdbuf[i] != 0; i++) { cmdbuf[i] = (char) toupper(cmdbuf[i]);
    }

    and I hover over string arrays I get a stange looking yy which has two dots above each y. I had been playing with some string manipulation software just before the upgrade. I could see the string contents fine.....

    However if I change the declaration to

    static char cmdbuf [30];

    Things are fine again. I also wish that in the "locals and watch#x" windows that they had ascii as well as decimal and hex.

Reply
  • Hi I posted too soon. The Watch does appear to be improved, the locals seem to work now where as before they didn't. But now if put a breakpoint after a string activity such as

    char cmdbuf [30];

    bla bla
    for (i = 0; cmdbuf[i] != 0; i++) { cmdbuf[i] = (char) toupper(cmdbuf[i]);
    }

    and I hover over string arrays I get a stange looking yy which has two dots above each y. I had been playing with some string manipulation software just before the upgrade. I could see the string contents fine.....

    However if I change the declaration to

    static char cmdbuf [30];

    Things are fine again. I also wish that in the "locals and watch#x" windows that they had ascii as well as decimal and hex.

Children