PR binutils/15994
authorNick Clifton <nickc@redhat.com>
Fri, 25 Oct 2013 08:33:59 +0000 (09:33 +0100)
committerTom Tromey <tromey@sourceware.org>
Fri, 25 Oct 2013 14:03:01 +0000 (14:03 +0000)
* dwarf2.c (lookup_address_in_line_info_table): Change return type
to be the range of addresses covered by the table.
(comp_unit_find_nearest_line): Likewise.
(find_line): Search all CUs.  Select the one that matches and
covers the smallest address range.

bfd/dwarf2.c

index cbcc9d4..4a904ea 100644 (file)
@@ -3566,7 +3566,7 @@ find_line (bfd *abfd,
       const char * local_functionname = NULL;
       unsigned int local_linenumber = 0;
       unsigned int local_discriminator = 0;
-      
+
       for (each = stash->all_comp_units; each; each = each->next_unit)
        {
          bfd_vma range = (bfd_vma) -1;