diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-03-06 09:51:33 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-03-06 09:51:33 -0500 |
commit | 531270084129e069772e68ead40c97404d1c0dd7 (patch) | |
tree | 44b59e96a22b317d794d623dcfe1e62035a19352 /gdb/ChangeLog | |
parent | 228f15081e22abed7ea336126caba26de5a3b791 (diff) | |
download | gdb-531270084129e069772e68ead40c97404d1c0dd7.zip gdb-531270084129e069772e68ead40c97404d1c0dd7.tar.gz gdb-531270084129e069772e68ead40c97404d1c0dd7.tar.bz2 |
btrace: Remove VEC cleanups
This patch replaces two VEC(tp_t) with std::vector<thread_info *>, which
allows to remove two cleanups. To make it easier to map the old code to
the new code, I added the ordered_remove and unordered_remove functions,
which operate on std::vector and do the same as VEC's
ordered_remove/unordered_remove.
gdb/ChangeLog:
* record-btrace.c (record_btrace_maybe_mark_async_event): Change
parameter types to std::vector. Use bool.
(record_btrace_wait): Replace VEC(tp_t) with
std::vector<thread_info *>.
* common/gdb_vecs.h (unordered_remove, ordered_remove): New.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ef89b4d..dfc22f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> + * record-btrace.c (record_btrace_maybe_mark_async_event): Change + parameter types to std::vector. Use bool. + (record_btrace_wait): Replace VEC(tp_t) with + std::vector<thread_info *>. + * common/gdb_vecs.h (unordered_remove, ordered_remove): New. + +2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> + * record-btrace.c (record_btrace_disable_callback): Remove. (struct scoped_btrace_disable): New. (record_btrace_open): Use scoped_btrace_disable. |