[Bug translator/6977] Incorrect resolution of variables in function scope

prerna at linux dot vnet dot ibm dot com sourceware-bugzilla@sourceware.org
Fri Oct 24 05:53:00 GMT 2008


------- Additional Comments From prerna at linux dot vnet dot ibm dot com  2008-10-24 05:52 -------
This arises because the variable "zone_reclaim_mode" is a global variable
defined in a different compilation unit than that of the function
"get_page_from_freelist()"
The Dwarf entry for "zone_reclaim_mode" in the CU of the function is simply a
declaration which doesnt have location info for it (since the variable is
defined as an extern int in this CU). This causes a semantic error when the stap
translator tries to fetch DWARF location info from its declaration.

To me, it appears similar to the problem of trying to access a global variable
in a different compile unit than the one in which it is defined.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6977

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Systemtap mailing list