From e6b2f5efa97c7f3de8a3947c6782c40ec6172686 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 21 Nov 2017 00:02:46 +0000 Subject: Fix mapped_index::find_name_components_bounds upper bound computation Here we want to find where we'd insert "after", so we want std::lower_bound, not std::upper_bound. gdb/ChangeLog: 2017-11-21 Pedro Alves * dwarf2read.c (mapped_index::find_name_components_bounds) : Use std::lower_bound instead of std::upper_bound. (test_mapped_index_find_name_component_bounds): Remove incorrect "t1_fund" from expected symbols. --- gdb/ChangeLog | 8 ++++++++ gdb/dwarf2read.c | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 196abc9..d3b7b42 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2017-11-21 Pedro Alves + * dwarf2read.c (mapped_index::find_name_components_bounds) + : Use std::lower_bound instead of + std::upper_bound. + (test_mapped_index_find_name_component_bounds): Remove incorrect + "t1_fund" from expected symbols. + +2017-11-21 Pedro Alves + * dwarf2read.c (mapped_index::name_components_casing): New field. (mapped_index)