This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]