From 94687c8da6273832666c7089a3b7349e1b55f57c Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 11 Jul 2008 00:47:50 -0400 Subject: fix variable-name-collision thinko in symbol processing logic This little ditty could cause infinite loops, but more often if stap was compiled fully optimized. --- translate.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translate.cxx b/translate.cxx index f711c903..c52171e1 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4415,9 +4415,9 @@ dump_unwindsyms (Dwfl_Module *m, if (n > 0) // only try to relocate if there exist relocation bases { - i = dwfl_module_relocate_address (m, &sym_addr); - dwfl_assert ("dwfl_module_relocate_address", i >= 0); - secname = dwfl_module_relocation_info (m, i, NULL); + int ki = dwfl_module_relocate_address (m, &sym_addr); + dwfl_assert ("dwfl_module_relocate_address", ki >= 0); + secname = dwfl_module_relocation_info (m, ki, NULL); } if (n == 1 && modname == "kernel" && secname && secname[0] == '\0') -- cgit