]> sourceware.org Git - systemtap.git/commitdiff
Fix: Debug links are not found if the sysroot is used.
authorTorsten Polle <Torsten.Polle@gmx.de>
Thu, 6 Mar 2014 20:38:49 +0000 (21:38 +0100)
committerFrank Ch. Eigler <fche@redhat.com>
Sat, 30 Apr 2016 23:50:28 +0000 (19:50 -0400)
Signed-off-by: Torsten Polle <Torsten.Polle@gmx.de>
setupdwfl.cxx

index 33239fe67cb942346830cb995bab04a01545d7f5..c60d60807bac54b97ba58b83488e7b1665041026 100644 (file)
@@ -627,6 +627,18 @@ internal_find_debuginfo (Dwfl_Module *mod,
 
   call_dwfl_standard_find_debuginfo:
 
+  if (current_session_for_find_debuginfo)
+    {
+      string sysroot = current_session_for_find_debuginfo->sysroot + "/*";
+      int    found   = fnmatch(sysroot.c_str(), file_name, 0);
+
+      if (found)
+       {
+         file_name = file_name
+           + current_session_for_find_debuginfo->sysroot.length() - 1;
+       }
+    }
+
   /* Call the original dwfl_standard_find_debuginfo */
   return dwfl_standard_find_debuginfo(mod, userdata, modname, base,
               file_name, debuglink_file,
This page took 0.02716 seconds and 5 git commands to generate.