]> sourceware.org Git - systemtap.git/commitdiff
PR12773: Fixed Test Suite Regressions
authorChris Meek <cmeek@redhat.com>
Mon, 8 Aug 2011 20:49:17 +0000 (16:49 -0400)
committerChris Meek <cmeek@redhat.com>
Tue, 9 Aug 2011 13:14:46 +0000 (09:14 -0400)
setupdwfl.cxx

index 6e98ee76fc032d55723bc1ebed7a72f7a8cd7e25..4748a476082fc045f813a57fa551d023dcdb8ff0 100644 (file)
@@ -464,19 +464,21 @@ internal_find_debuginfo (Dwfl_Module *mod,
       GElf_Word debuglink_crc,
       char **debuginfo_file_name)
 {
+  int bits_length;
+  string hex;
   /* To Keep track of whether the abrt successfully installed the debuginfo */
   static int install_dbinfo_failed = 0;
 
   /* Make sure the current session variable is not null */
   if(current_session_for_find_debuginfo == NULL)
-    return -1;
+    goto call_dwfl_standard_find_debuginfo;
 
   /* Check that we haven't already run this */
   if (install_dbinfo_failed < 0)
     {
       if(current_session_for_find_debuginfo->verbose > 1)
         clog << _F("We already tried running '%s'", ABRT_PATH) << endl;
-      return -1;
+      goto call_dwfl_standard_find_debuginfo;
     }
 
   /* Extract the build ID */
@@ -484,10 +486,10 @@ internal_find_debuginfo (Dwfl_Module *mod,
   GElf_Addr vaddr;
   if(current_session_for_find_debuginfo->verbose > 2)
     clog << _("Extracting build ID.") << endl;
-  int bits_length = dwfl_module_build_id(mod, &bits, &vaddr);
+  bits_length = dwfl_module_build_id(mod, &bits, &vaddr);
 
   /* Convert the binary bits to a hex string */
-    string hex = hex_dump(bits, bits_length);
+  hex = hex_dump(bits, bits_length);
 
   /* Search for the debuginfo with the build ID */
   if(current_session_for_find_debuginfo->verbose > 2)
@@ -513,6 +515,8 @@ internal_find_debuginfo (Dwfl_Module *mod,
         current_session_for_find_debuginfo->print_warning(ABRT_PATH " failed");
     }
 
+  call_dwfl_standard_find_debuginfo:
+
   /* Call the original dwfl_standard_find_debuginfo */
   return dwfl_standard_find_debuginfo(mod, userdata, modname, base,
               file_name, debuglink_file,
This page took 0.029232 seconds and 5 git commands to generate.