aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-21 13:08:03 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-29 14:06:26 -0500
commit35e65c49df7d8fac3c0a32fa0d696988a9de675d (patch)
tree4cb4567dd102a727ec1d639aba5fcca9c3f42d24 /gdb/minsyms.c
parented2a222951020d1117c5e1d4f37e82fd26761267 (diff)
downloadfsf-binutils-gdb-35e65c49df7d8fac3c0a32fa0d696988a9de675d.zip
fsf-binutils-gdb-35e65c49df7d8fac3c0a32fa0d696988a9de675d.tar.gz
fsf-binutils-gdb-35e65c49df7d8fac3c0a32fa0d696988a9de675d.tar.bz2
Replace bsearch with a std::lower_bound-based search
This is more type-safe and can be faster due to inlining and avoiding overhead from calling through a function pointer. gdb/ChangeLog: 2019-10-29 Christian Biesinger <cbiesinger@google.com> * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h. * dwarf2-frame.c (bsearch_fde_cmp): Update. (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search. * gdbsupport/gdb_binary_search.h: New file. Change-Id: I07e0a0e333f4062b27fc68d3a3f24881ebc68fd4
Diffstat (limited to 'gdb/minsyms.c')
0 files changed, 0 insertions, 0 deletions