From a2e0408065b872f8afac3364f218d9ebf9447dd1 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Tue, 18 Aug 2009 21:52:59 +0200 Subject: 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. --- loc2c-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loc2c-test.c') 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; -- cgit