This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10533] 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 20:10:19 -0000
- Subject: [Bug translator/10533] inlined vars are not always found
- References: <20090818104915.10533.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2009-08-18 20:10 -------
commit 766d05e2cabc44805a9e12c4c309d1232f681f10
Author: Mark Wielaard <mjw@redhat.com>
Date: Tue Aug 18 22:01:53 2009 +0200
Add testcase for PR10533 (inlined vars) and 10537 (inlined labels - disabled
Partial testcase for PR10533 (inlined vars) and 10537 (inlined labels)
currently we cannot use the full testcase since stap doesn't support
probing multiple instances of inlined labels.
* testsuite/systemtap.base/inlinedvars.exp: New file.
* testsuite/systemtap.base/inlinedvars.stp: Likewise.
* testsuite/systemtap.base/inlinedvars.c: Likewise.
commit 7bce6f87482ece5b55db98b589666a2adac9cd1f
Author: Mark Wielaard <mjw@redhat.com>
Date: Tue Aug 18 21:54:54 2009 +0200
PR10533 inlined vars are not always found (dwflpp).
dwflpp::find_variable_and_frame_base switched too early to "pyshical view"
of die tree. We need to lookup the var in the "syntactical view" of the die
tree first. Then when we see a DW_TAG_inlined_subroutine while walking the
syntactical die tree as returned by dwarf_getscopes for a given variable
to retrieve the frame base, then we need to switch to walking the physical
die tree where the subroutine is inlined.
* dwflpp.cxx (find_variable_and_frame_base): Don't immediately go to
die_scopes, but lookup var first based on pc. Then switch "die branches"
when searching for frame base and a DW_TAG_inlined_subroutine is
encountered.
commit a2e0408065b872f8afac3364f218d9ebf9447dd1
Author: Mark Wielaard <mjw@redhat.com>
Date: Tue Aug 18 21:52:59 2009 +0200
PR10533 inlined vars are not always found (lo2c-test off-by-one).
* loc2c-test.c (handle_variable): Set inner to zero after
calling dwarf_getscopes_die(), for loop will increase inner.
commit 21c38ccc872a9b8c340e15545dc37ff8474f4109
Author: Mark Wielaard <mjw@redhat.com>
Date: Tue Aug 18 15:50:40 2009 +0200
PR10533 loc2c doesn't resolve frame base correctly for inlined vars.
When we see a DW_TAG_inlined_subroutine while walking the syntactical
die tree as returned by dwarf_getscopes for a given variable to retrieve
the frame base, then we need to switch to walking the physical die tree
where the subroutine is inlined.
* loc2c-test.c (handle_variable): Switch "die branches" when searching
for frame base and a DW_TAG_inlined_subroutine is encountered.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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.