]> sourceware.org Git - systemtap.git/commit
dwflpp.cxx: use lower_bound() instead of manual binary search
authorJonathan Lebon <jlebon@redhat.com>
Fri, 30 May 2014 19:42:00 +0000 (15:42 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Fri, 30 May 2014 20:01:16 +0000 (16:01 -0400)
commit71b8e6690d5d3df35fd8c7ca3a9617d31a5fd328
treefaf1c2bbbc53300d5ea222f730fc64e737669b82
parentd3064fb23d624349ffbc1f5d3ef8d1c45de4f0ad
dwflpp.cxx: use lower_bound() instead of manual binary search

This is a follow-up to commit 1d50099. We previously implemented our own
binary search to find the line record associated with the function's
entrypc. To be on the safe side, we instead rely on lower_bound() for
binary searching, which will pick the first element in a range of equal
addresses, thus avoiding issues such as BZ1099133.
dwflpp.cxx
This page took 0.024155 seconds and 5 git commands to generate.