2009-08-06 Paul Pluzhnikov <ppluzhnikov@google.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 6 Aug 2009 23:19:47 +0000 (23:19 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 6 Aug 2009 23:19:47 +0000 (23:19 +0000)
commitb01c84103b9aeb50d2c34d2e562579b79a0c604c
treeb04e0e7cec9d9a5c11545f22617602e6e9d497d7
parentd837706a7c1ce2dea0c2c18d3f7977bc54e31eb6
2009-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

* dwarf2-frame.c (struct dwarf2_cie): Remove 'next'.
(struct dwarf2_cie_table): New.
(struct dwarf2_fde): Remove 'next'.
(struct dwarf2_fde_table): New.
(struct comp_unit): Remove 'cie'.
(bsearch_cie_cmp, bsearch_fde_cmp): New function.
(find_cie, dwarf2_frame_find_fde): Use bsearch.
(add_cie, add_fde): Use array instead of linked list.
(decode_frame_entry, decode_frame_entry_1): New parameters.
(qsort_fde_cmp): New function.
(dwarf2_build_frame_info): Adjust.
gdb/ChangeLog
gdb/dwarf2-frame.c