Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-tcf-dev] ISymbols, scope information and symbol addresses

Hi Eugene.

Thanks for an informative answer. I have some additional questions:

>> ... how would one be able to get the value of symbols with this
interface if the address in the symbol information is not an absolute
address but use some addressing mode, or if the symbol was optimized and
its address varies with program counter?

> Yes, symbol address is dynamic information and it depends on program
counter, stack frame, process ID, etc. Lookup and evaluation of symbols
in a given context is provided by Expressions service. You can use
Expressions service to evaluate an address. For example, if you have a
local variable "int x;", you can evaluate expression "&x" on a
particular stack frame to get address of x.

I can relate to that. 
But what is the meaning of asking a symbol context for it's address with getAddress() when these contexts only represent a static view of symbol information?

I am also wondering how an objectfile pathname to parse is communicated to an ISymbols implementation? I cannot see how this can be done with the current ISymbols interface. Is this done through another service? 

Regards,

Torleif 


Back to the top