Developing on S60

Developers of S60

View Memory on Variables

Carbide C++ - August 8th, 2008 - Written by Ken Ryall

In Carbide 1.3 we picked up a new feature from CDT that had been missed by CodeWarrior users when moving to Carbide: the ability to right-click on a variable and view memory. This week I revisited an issue that also came up with CodeWarrior: what happens when you “View Memory” on a variable that’s stored in a register?

Ordinarily we assume you want to look at the chunk of memory were the variable’s value is stored. We find out where it is located and open a memory monitor on that address. This does the what you would want in most cases except when the compiler has used a register to store the variable’s value. In Carbide 1.3 you get an obscure error message if you attempt to view memory on a variable in a register. For Carbide 2.0 I could have just cleaned up the error message but recalled that when we had this issue when CodeWarrior we fixed it to use the value in the register as the memory location. This isn’t completely consistent with how we treat other variables but at least does something more useful than display an error.

About the author Ken Ryall

  • Number of posts: 26

Please keep your comments relevant to this blog entry. Email addresses are never displayed, but they are required to confirm your comments.