Fix mapped_index::find_name_components_bounds upper bound computation
authorPedro Alves <palves@redhat.com>
Tue, 21 Nov 2017 00:02:46 +0000 (00:02 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 21 Nov 2017 00:03:27 +0000 (00:03 +0000)
commite6b2f5efa97c7f3de8a3947c6782c40ec6172686
treeae8adf5d462103024b3cdffa5fe180a507d219fd
parent5c58de74c9acb346513c974fcdede270be2a77c3
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  <palves@redhat.com>

* dwarf2read.c (mapped_index::find_name_components_bounds)
<completion mode, upper bound>: 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
gdb/dwarf2read.c