summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/translate.cxx b/translate.cxx
index eaa2e942..62c71aeb 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4724,9 +4724,9 @@ dump_unwindsyms (Dwfl_Module *m,
c->output << "static uint8_t _stp_module_" << stpmod_idx
<< "_eh_frame[] = \n";
c->output << " {";
- for (size_t i = 0; i < debug_len; i++)
+ for (size_t i = 0; i < eh_len; i++)
{
- int h = ((uint8_t *)debug_frame)[i];
+ int h = ((uint8_t *)eh_frame)[i];
c->output << "0x" << hex << h << dec << ",";
if ((i + 1) % 16 == 0)
c->output << "\n" << " ";