aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
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/Makefile.in
parented2a222951020d1117c5e1d4f37e82fd26761267 (diff)
downloadgdb-35e65c49df7d8fac3c0a32fa0d696988a9de675d.zip
gdb-35e65c49df7d8fac3c0a32fa0d696988a9de675d.tar.gz
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/Makefile.in')
-rw-r--r--gdb/Makefile.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index c924373..4f431c3 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1469,6 +1469,7 @@ HFILES_NO_SRCDIR = \
gdbsupport/format.h \
gdbsupport/gdb-dlfcn.h \
gdbsupport/gdb_assert.h \
+ gdbsupport/gdb_binary_search.h \
gdbsupport/gdb_tilde_expand.h \
gdbsupport/gdb_locale.h \
gdbsupport/gdb_proc_service.h \