]> sourceware.org Git - systemtap.git/commitdiff
Simplify section size logic.
authorMark Wielaard <mjw@redhat.com>
Wed, 22 Apr 2009 10:53:39 +0000 (12:53 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 22 Apr 2009 10:56:07 +0000 (12:56 +0200)
* translate.cxx (dump_unwindsyms): Just check that dwfl_module_relocations()
  return more than 1 relocation section bases before calling
  dwfl_module_address_section().

translate.cxx

index f7868ceba91284fc015ea9c1aeffdc282ad1361a..3fa8857b2a21e8fe0da5d83d8463836a65eeba1c 100644 (file)
@@ -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
                    {
This page took 0.03773 seconds and 5 git commands to generate.