[Dwarf-Discuss] modeling different address spaces

Frank Ch. Eigler fche@redhat.com
Fri Jul 31 13:40:13 GMT 2020


Hi -

> Can you explain this more?
> 
> DWARF handles the situation where part of a variable is in memory and part
> in a register or in multiple registers.  When would you have a variable
> which was in multiple address spaces?

Remember the "how can a debugger WRITE safely to variables" discussion
last year?  A variable may reside in some unusual memory segment, AND
may have been loaded into a register, AND maybe even spilled to the
normal stack temporarily.  Could be three different address spaces
valid for the same variable at the same PC address.  (And a debugger
that needs to update the value would need to find them all.)

- FChE




More information about the Dwarf-discuss mailing list