I'm using a DSS script to automate testing of a C program. Inside main() I have a few local variables. These variables are set just before a function is called. I can set a breakpoint on a function and stop just before the call, but I can not get the addresses of any of the local variables with DSS.
example:
int main()
{
....
const uint32_t isValid = 0x1234U;
...
function_where_I_set_a_breakpoint();
}
In DSS I've tried
var add = debugSession.expression.evaluate("isValid");
I get errors from this call:
SEVERE: identifier not found: isValid
SEVERE: Error evaluating "isValid": identifier not found: isValid
I set the function breakpoint so the local variable would be in scope for the debugger (and when I debug with CCS it is in the variables tab). How can I retrieve the value of the isValid variable in DSS when at a breakpoint in the variables socpe?