1 *** ../binutils-2.23.52.0.1.orig/bfd/opncls.c 2013-03-14 11:25:30.338306122 +0000
2 --- bfd/opncls.c 2013-03-14 12:20:21.686397360 +0000
3 *************** find_separate_debug_file (bfd *abfd, con
6 bfd_malloc (strlen (debug_file_directory) + 1
7 + (canon_dirlen > dirlen ? canon_dirlen : dirlen)
9 + #define FEDORA_LIB_DEBUG_DIR "/usr/lib/debug/"
10 + + strlen (FEDORA_LIB_DEBUG_DIR) + strlen ("usr/")
13 if (debugfile == NULL)
14 *************** find_separate_debug_file (bfd *abfd, con
17 if (check_func (debugfile, crc32))
20 + /* Then try in the global debug dir for Fedora libraries. */
21 + sprintf (debugfile, "%s%s%s", FEDORA_LIB_DEBUG_DIR, dir, base);
22 + if (separate_debug_file_exists (debugfile, crc32))
30 + /* Then try in the usr subdirectory of the global debug dir for Fedora libraries. */
31 + sprintf (debugfile, "%s/usr%s%s", FEDORA_LIB_DEBUG_DIR, dir, base);
32 + if (separate_debug_file_exists (debugfile, crc32))
40 /* Then try in the global debugfile directory. */
41 strcpy (debugfile, debug_file_directory);
42 dirlen = strlen (debug_file_directory) - 1;
43 *** ../binutils-2.23.52.0.1.orig/bfd/dwarf2.c 2013-03-14 11:25:30.608306129 +0000
44 --- bfd/dwarf2.c 2013-03-14 13:14:18.102487075 +0000
45 *************** find_line (bfd *abfd,
48 struct dwarf2_debug *stash;
49 /* What address are we looking for? */
51 + /* What is the address without relocation ? */
52 + bfd_vma unrelocated_addr;
53 struct comp_unit* each;
54 bfd_vma found = FALSE;
55 + bfd_vma possible_find = FALSE;
59 *************** find_line (bfd *abfd,
65 + /* If we are dealing with PIC code then the debug information
66 + will be based on unrelocated addresses. Since we cannot be
67 + sure if this is a PIC address we test both with and without
69 + unrelocated_addr = addr;
71 if (section->output_section)
72 addr += section->output_section->vma + section->output_offset;
74 *************** find_line (bfd *abfd,
81 + if (! possible_find)
82 + possible_find = ((each->arange.high == 0
83 + || comp_unit_contains_address (each, unrelocated_addr))
84 + && comp_unit_find_nearest_line (each, unrelocated_addr,
93 *************** find_line (bfd *abfd,
99 + if (! found && ! do_line && ! possible_find)
100 + possible_find = ((each->arange.high == 0
101 + || comp_unit_contains_address (each, unrelocated_addr))
102 + && comp_unit_find_nearest_line (each, unrelocated_addr,
109 if ((bfd_vma) (stash->info_ptr - stash->sec_info_ptr)
112 *************** find_line (bfd *abfd,
115 if ((abfd->flags & (EXEC_P | DYNAMIC)) == 0)
116 unset_sections (stash);
119 + return possible_find;