This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10533] New: inlined vars are not always found
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 18 Aug 2009 10:49:16 -0000
- Subject: [Bug translator/10533] New: inlined vars are not always found
- Reply-to: sourceware-bugzilla at sourceware dot org
stap (and loc2c-test) doesn't always find inlined local variables if multiple
"scopes" have been inlined, even if the dwarf information contains location
expressions for them.
The problem is that locating the variable needs to use the "lexical scope" of
the variable at a certain pc location, but finding any associated frame base for
resolving the variable location needs to search the "physical scope" of the DIEs.
The problems in stap and loc2c-test are slightly different (but related).
dwflpp::find_variable_and_frame_base tries to get the "physcial scope" right
first, which makes it miss some variables that should be visible through the
"lexical scope". While loc2c-test handle_variable() only searches the "lexical
scope" for the frame base (which is wrong if there are multiple nested
inlined_subroutines) and the variables (which means loc2c-test sees more
variables than the related dwflpp routine).
--
Summary: inlined vars are not always found
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10533
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.