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/10533] New: inlined vars are not always found


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.


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