]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace: Remove btrace disable cleanup
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 4 Mar 2018 20:56:03 +0000 (15:56 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 5 Mar 2018 21:57:36 +0000 (16:57 -0500)
commit9fd0d582c79c1dbc5b1dd3dcde2e6c6966c3a4ef
treeb5821ddbe2a067c73008edc104ef014cb4dd5106
parent0e70b27ba900581df8e23cbbd4612176f869d796
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/record-btrace.c