diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-04-22 12:53:39 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-04-22 12:56:07 +0200 |
commit | eadbd95761af3c2815e1b36df5a7d18dd28112a4 (patch) | |
tree | e208ef875969662f4f45e881f19681490309d086 /translate.cxx | |
parent | 9ccda279d763ef16ac20e171b3136d1741d07014 (diff) | |
download | systemtap-steved-eadbd95761af3c2815e1b36df5a7d18dd28112a4.tar.gz systemtap-steved-eadbd95761af3c2815e1b36df5a7d18dd28112a4.tar.xz systemtap-steved-eadbd95761af3c2815e1b36df5a7d18dd28112a4.zip |
Simplify section size logic.
* translate.cxx (dump_unwindsyms): Just check that dwfl_module_relocations()
return more than 1 relocation section bases before calling
dwfl_module_address_section().
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/translate.cxx b/translate.cxx index f7868ceb..3fa8857b 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4659,11 +4659,7 @@ dump_unwindsyms (Dwfl_Module *m, // absolute, dynamic or kernel have just one relocation // section, which covers the whole module address range. unsigned size; - if (secidx == 0 - && (n == 0 - || (n == 1 - && (strcmp(secname, ".dynamic") == 0 - || strcmp(secname, "_stext") == 0)))) + if (n <= 1) size = end - start; else { |