Part Number: CCSTUDIO
Hi Experts,
This is a question from our customer.
I try to get symbol information (address, size, type) within a script like in IDE "expression" tab.I found a valid API from java or GEL for address but nothing for size or type.
I will try to explain my concern:
In a scripting environment like the scripting console view, with JAVA or GEL language, I want to be able to get information (address, size, type) about a previously loaded symbols in the current debug session. For example, if in the C code there is a declared global variable "int tab[12]", I want with symbol name "tab" to get its address on target, its allocated size (in word of 16bits or other), its type (table of 12 int). I think it is possible because all these information are already available in CSS IDE debug view in the "expression" tab. In this graphical view, when we enter a symbol name, it is automaticaly decoded (address, size, type, value for each element of structure member or table item if any).
For information I already can get address with API "session.expression.evaluate('&tab')" or "session.symbol.getAddress('tab')", but i can't find a way for size and type.
Thank you in advance for your support.
Best regards,
Jonathan