1 --- a/bfd/opncls.c 2013-03-14 11:25:30.338306122 +0000
2 +++ b/bfd/opncls.c 2013-03-14 12:20:21.686397360 +0000
4 bfd_malloc (strlen (debug_file_directory) + 1
5 + (canon_dirlen > dirlen ? canon_dirlen : dirlen)
7 +#define FEDORA_LIB_DEBUG_DIR "/usr/lib/debug/"
8 + + strlen (FEDORA_LIB_DEBUG_DIR) + strlen ("usr/")
11 if (debugfile == NULL)
12 @@ -1332,6 +1334,26 @@
13 if (check_func (debugfile, crc32))
16 + /* Then try in the global debug dir for Fedora libraries. */
17 + sprintf (debugfile, "%s%s%s", FEDORA_LIB_DEBUG_DIR, dir, base);
18 + if (separate_debug_file_exists (debugfile, crc32))
26 + /* Then try in the usr subdirectory of the global debug dir for Fedora libraries. */
27 + sprintf (debugfile, "%s/usr%s%s", FEDORA_LIB_DEBUG_DIR, dir, base);
28 + if (separate_debug_file_exists (debugfile, crc32))
36 /* Then try in the global debugfile directory. */
37 strcpy (debugfile, debug_file_directory);
38 dirlen = strlen (debug_file_directory) - 1;