Use an std::vector for inline_states
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 9 Apr 2018 19:40:45 +0000 (15:40 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 9 Apr 2018 19:40:45 +0000 (15:40 -0400)
commitb24531ed171b5751a3a64c461728c9ad62092c8a
treedb3fdd6625a99c6e20202c6493573a7914f93c2d
parentc252925ccc8c3c2ce2a65d12a50acfee53914ce3
Use an std::vector for inline_states

This patch replaces VEC(inline_state) with std::vector<inline_state> and
adjusts the code that uses it.

gdb/ChangeLog:

* common/gdb_vecs.h (unordered_remove): Add overload that takes
an iterator.
* inline-frame.c: Include <algorithm>.
(struct inline_state): Add constructor.
(inline_state_s): Remove.
(DEF_VEC_O(inline_state_s)): Remove.
(inline_states): Change type to std::vector.
(find_inline_frame_state): Adjust to std::vector.
(allocate_inline_frame_state): Remove.
(clear_inline_frame_state): Adjust to std::vector.
(skip_inline_frames): Adjust to std::vector.
gdb/ChangeLog
gdb/common/gdb_vecs.h
gdb/inline-frame.c