]>
Commit | Line | Data |
---|---|---|
59e455fe ER |
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 | |
3 | @@ -1297,6 +1297,8 @@ | |
4 | bfd_malloc (strlen (debug_file_directory) + 1 | |
5 | + (canon_dirlen > dirlen ? canon_dirlen : dirlen) | |
6 | + strlen (".debug/") | |
7 | +#define FEDORA_LIB_DEBUG_DIR "/usr/lib/debug/" | |
8 | + + strlen (FEDORA_LIB_DEBUG_DIR) + strlen ("usr/") | |
9 | + strlen (base) | |
10 | + 1); | |
11 | if (debugfile == NULL) | |
12 | @@ -1332,6 +1334,26 @@ | |
13 | if (check_func (debugfile, crc32)) | |
14 | goto found; | |
15 | ||
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)) | |
19 | + { | |
20 | + free (base); | |
21 | + free (dir); | |
22 | + free (canon_dir); | |
23 | + return debugfile; | |
24 | + } | |
25 | + | |
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)) | |
29 | + { | |
30 | + free (base); | |
31 | + free (dir); | |
32 | + free (canon_dir); | |
33 | + return debugfile; | |
34 | + } | |
35 | + | |
36 | /* Then try in the global debugfile directory. */ | |
37 | strcpy (debugfile, debug_file_directory); | |
38 | dirlen = strlen (debug_file_directory) - 1; |