From 96691246d49443c5141ec225c7cd313ce0015850 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 25 Oct 2013 09:33:59 +0100 Subject: [PATCH] PR binutils/15994 * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index cbcc9d46037..4a904eafbb3 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -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; -- 2.30.2