bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/20876] objdump is not aware about the build ID method to f


From: doko at debian dot org
Subject: [Bug binutils/20876] objdump is not aware about the build ID method to find detached debug info
Date: Wed, 11 Jan 2017 20:44:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20876

--- Comment #6 from Matthias Klose <doko at debian dot org> ---
applying this on top of your patch works for me. The global debug directory
doesn't have the dirname of the original file, so don't append `canon_dir'. 
Not sure if that needs to be stripped from the tests with EXTRA_DEBUG_ROOT1 and
EXTRA_DEBUG_ROOT2 prefixes as well?

--- bfd/opncls.c~       2017-01-11 20:29:07.061189932 +0100
+++ bfd/opncls.c        2017-01-11 21:39:51.211288793 +0100
@@ -1481,11 +1481,8 @@
   /* Then try in the global debugfile directory.  */
   strcpy (debugfile, debug_file_directory);
   dirlen = strlen (debug_file_directory) - 1;
-  if (dirlen > 0
-      && debug_file_directory[dirlen] != '/'
-      && canon_dir[0] != '/')
+  if (dirlen > 0 && debug_file_directory[dirlen] != '/')
     strcat (debugfile, "/");
-  strcat (debugfile, canon_dir);
   strcat (debugfile, base);

   if (check_func (debugfile, crc32))

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]