From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17226 invoked by alias); 6 Jul 2012 16:58:44 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 17200 invoked by uid 306); 6 Jul 2012 16:58:42 -0000 Date: Fri, 06 Jul 2012 16:58:00 -0000 Message-ID: <20120706165842.17183.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-dwz-multifile-rebase: fix another thinko in binary search X-Git-Refname: refs/heads/archer-tromey-dwz-multifile-rebase X-Git-Reftype: branch X-Git-Oldrev: e7da6d4dccfbf97ee3a8a92a73be40703b7f8353 X-Git-Newrev: 4b3c3eb4fc52d4bb0605a21128ed7641be6dae3a X-SW-Source: 2012-q3/txt/msg00003.txt.bz2 List-Id: The branch, archer-tromey-dwz-multifile-rebase has been updated via 4b3c3eb4fc52d4bb0605a21128ed7641be6dae3a (commit) from e7da6d4dccfbf97ee3a8a92a73be40703b7f8353 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 4b3c3eb4fc52d4bb0605a21128ed7641be6dae3a Author: Tom Tromey Date: Fri Jul 6 10:58:00 2012 -0600 fix another thinko in binary search ----------------------------------------------------------------------- Summary of changes: gdb/dwarf2read.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) First 500 lines of diff: diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 00fa4ef..e59d2d8 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -17237,8 +17237,9 @@ dwarf2_find_containing_comp_unit (sect_offset offset, mid_cu = dwarf2_per_objfile->all_comp_units[mid]; cu_off = &mid_cu->offset; - if (mid_cu->is_dwz >= offset_in_dwz - && cu_off->sect_off >= offset.sect_off) + if (mid_cu->is_dwz > offset_in_dwz + || (mid_cu->is_dwz == offset_in_dwz + && cu_off->sect_off >= offset.sect_off)) high = mid; else low = mid + 1; hooks/post-receive -- Repository for Project Archer.