summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-10-29 16:31:39 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-10-29 16:31:39 -0400
commit6f8b68010d8a11cbb97f225b16a3ef2f39f11fd8 (patch)
tree09b1d9af2b64fdbc2066941eed36745c54b77522 /translate.cxx
parent72dde18184542ab746869bce04869c43f2436217 (diff)
downloadsystemtap-steved-6f8b68010d8a11cbb97f225b16a3ef2f39f11fd8.tar.gz
systemtap-steved-6f8b68010d8a11cbb97f225b16a3ef2f39f11fd8.tar.xz
systemtap-steved-6f8b68010d8a11cbb97f225b16a3ef2f39f11fd8.zip
fix assertion error in translate.cxx:dump_unwindsyms on some kernels
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/translate.cxx b/translate.cxx
index ee6b21cb..41128554 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.