diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-07-11 00:47:50 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-07-11 00:47:50 -0400 |
commit | 94687c8da6273832666c7089a3b7349e1b55f57c (patch) | |
tree | 90eb5388494d857042bf0347ab2f26440c8d75f0 | |
parent | 2c9438e385d0f718d0aa7798e110c59fd585e16f (diff) | |
download | systemtap-steved-94687c8da6273832666c7089a3b7349e1b55f57c.tar.gz systemtap-steved-94687c8da6273832666c7089a3b7349e1b55f57c.tar.xz systemtap-steved-94687c8da6273832666c7089a3b7349e1b55f57c.zip |
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.
-rw-r--r-- | translate.cxx | 6 |
1 files 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') |