[Dwarf-Discuss] Default Location List Entry Issue 130121.1

Michael Eager eager@eagercon.com
Wed Apr 2 01:42:26 GMT 2014


On 04/01/14 13:54, Mark Wielaard wrote:

> What about using the presence of a DW_AT_external attribute on the data
> object that has a single location expression to know whether the described
> location is valid/visible outside of the enclosing lexical scope?
>
> Using that or some new flag (DW_AT_global_scope) to mark a data object
> that has a single location description with global scope might be cheaper
> than encoding it with a location list pointer and a default entry.

Both DW_AT_external attribute and a hypothetical DW_AT_global_scope
attribute would describe scope, not the storage life of the object.
C unfortunately has confabulated the two concepts.

Objects which have only a single location can be described with a location
expression.  They don't need a location list with a default entry.

-- 
Michael Eager	 eager at eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077




More information about the Dwarf-discuss mailing list