forked from pool/systemtap
24 lines
1021 B
Diff
24 lines
1021 B
Diff
|
commit 6f8b68010d8a11cbb97f225b16a3ef2f39f11fd8
|
||
|
Author: Frank Ch. Eigler <fche@elastic.org>
|
||
|
Date: Wed Oct 29 16:31:39 2008 -0400
|
||
|
|
||
|
fix assertion error in translate.cxx:dump_unwindsyms on some kernels
|
||
|
|
||
|
diff --git a/translate.cxx b/translate.cxx
|
||
|
index ee6b21c..4112855 100644
|
||
|
--- a/translate.cxx
|
||
|
+++ b/translate.cxx
|
||
|
@@ -4481,9 +4481,10 @@ dump_unwindsyms (Dwfl_Module *m,
|
||
|
secname = dwfl_module_relocation_info (m, ki, NULL);
|
||
|
}
|
||
|
|
||
|
- if (n == 1 && modname == "kernel" && secname && secname[0] == '\0')
|
||
|
+ if (n == 1 && modname == "kernel")
|
||
|
{
|
||
|
- // This is a symbol within a relocatable kernel image.
|
||
|
+ // This is a symbol within a (possibly relocatable)
|
||
|
+ // kernel image.
|
||
|
secname = "_stext";
|
||
|
// NB: don't subtract session.sym_stext, which could be inconveniently NULL.
|
||
|
// Instead, sym_addr will get compensated later via extra_offset.
|