btrace: Remove btrace disable cleanup
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 6 Mar 2018 14:51:32 +0000 (09:51 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 6 Mar 2018 14:51:32 +0000 (09:51 -0500)
commit228f15081e22abed7ea336126caba26de5a3b791
treefe2810b725688812f281cc354af597d16267189e
parentb2970c238e24e6239760b72c924ee7dd2df9ccd1
btrace: Remove btrace disable cleanup

This patch removes a cleanup that disables btrace on threads in case of
failure, so we don't leave it enabled for some the threads and disabled
for the rest.

gdb/ChangeLog:

* record-btrace.c (record_btrace_disable_callback): Remove.
(struct scoped_btrace_disable): New.
(record_btrace_open): Use scoped_btrace_disable.
gdb/ChangeLog
gdb/record-btrace.c