Hi,

$ bzip2 -dvk backtrace*.bz2
$ ./backtrace ./backtrace.ppc64.{exec,core}
 0x10000000     0x100c0000      [exe]
 0xfffa3000000  0xfffa3010000   linux-vdso64.so.1
 TID 54659:
 # 0 0x10007fa8         .raise
 # 1 0x10008370 - 1     .abort
 # 2 0x10001344 - 1     .sigusr2
-FAIL:
-# 3 0xfffa3000418 - 1  (null)
-No DWARF information found
+PASS:
+# 3 0xfffa3000418      __kernel_sigtramp_rt64
+# 4 0x10007fa8         .raise
+[...]

I find this initialization missing there.

Testcase for this patch is the whole testsuite of:
        [API RFC] unwinder
        
https://lists.fedorahosted.org/pipermail/elfutils-devel/2012-October/002618.html


Thanks,
Jan


libdwfl/
2012-10-08  Jan Kratochvil  <[email protected]>

        * dwfl_segment_report_module.c (dwfl_segment_report_module):
        Initialize mod->MAIN_BIAS.

diff --git a/libdwfl/dwfl_segment_report_module.c 
b/libdwfl/dwfl_segment_report_module.c
index afe9da1..96eae8e 100644
--- a/libdwfl/dwfl_segment_report_module.c
+++ b/libdwfl/dwfl_segment_report_module.c
@@ -650,6 +650,7 @@ dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char 
*name,
       mod->main.elf = elf;
       mod->main.vaddr = module_start - bias;
       mod->main.address_sync = module_address_sync;
+      mod->main_bias = bias;
     }
 
   return finish ();
_______________________________________________
elfutils-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/elfutils-devel

Reply via email to