diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-08-18 21:52:59 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-08-18 22:05:29 +0200 |
commit | a2e0408065b872f8afac3364f218d9ebf9447dd1 (patch) | |
tree | 32f3fbfa92995c798c4dc2a1efcb65b06006d981 /loc2c-test.c | |
parent | a7ed0d3e9d68f5f83e8b9f6679ce12637842b03b (diff) | |
download | systemtap-steved-a2e0408065b872f8afac3364f218d9ebf9447dd1.tar.gz systemtap-steved-a2e0408065b872f8afac3364f218d9ebf9447dd1.tar.xz systemtap-steved-a2e0408065b872f8afac3364f218d9ebf9447dd1.zip |
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.
Diffstat (limited to 'loc2c-test.c')
-rw-r--r-- | loc2c-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loc2c-test.c b/loc2c-test.c index c1c1d263..48691a33 100644 --- a/loc2c-test.c +++ b/loc2c-test.c @@ -115,7 +115,7 @@ handle_variable (Dwarf_Die *lscopes, int lnscopes, int out, if (nscopes == -1) error (2, 0, _("cannot get die scopes inlined_subroutine: %s"), dwarf_errmsg (-1)); - inner = 1; + inner = 0; // zero is current scope, for look will increase. out = -1; } break; |