On Thu, Oct 22, 2009 at 8:33 AM, Paul Pluzhnikov wrote: > I'll just fix the bsearch calls, since A) one of them is known to > cause a problem and B) I introduced them recently :-( Here is the revised patch. The call to bsearch in dwarf2_frame_find_fde is already preceded by assert of "fde_table->num_entries > 0", so no changes are needed there. There is one more call to bsearch in solib-osf.c, but that file appears to not be used anymore. Ok to deleted it? Thanks, -- Paul Pluzhnikov 2009-10-22 Paul Pluzhnikov PR gdb/10819 * dwarf2-frame.c (find_cie): Don't call bsearch on empty cie_table. * objfiles.c (find_pc_section): Likewise.