diff options
author | Nick Clifton <nickc@redhat.com> | 2013-10-25 09:33:59 +0100 |
---|---|---|
committer | Tom Tromey <tromey@sourceware.org> | 2013-10-25 14:03:01 +0000 |
commit | 96691246d49443c5141ec225c7cd313ce0015850 (patch) | |
tree | 37e8a9ca194a84de7f84581860f6a34c9a7e9b67 /bfd | |
parent | 240d6706c6a2497aa545f9ceda023196ae1e8606 (diff) | |
download | gdb-96691246d49443c5141ec225c7cd313ce0015850.zip gdb-96691246d49443c5141ec225c7cd313ce0015850.tar.gz gdb-96691246d49443c5141ec225c7cd313ce0015850.tar.bz2 |
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.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/dwarf2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index cbcc9d4..4a904ea 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; |