This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Remove cleanups from record-full.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 11 Jun 2018 00:55:52 -0400
- Subject: [binutils-gdb] Remove cleanups from record-full.c
*** TEST RESULTS FOR COMMIT 1ddbba9df5fda9b1af5306fe182a5f1c3197f53a ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 1ddbba9df5fda9b1af5306fe182a5f1c3197f53a
Remove cleanups from record-full.c
This removes cleanups from record-full.c. In this case, the cleanups
were only ever run when an exception was thrown. So, I replaced these
with try/catch, rather than introduce a new specialized RAII type.
Tested by the buildbot.
gdb/ChangeLog
2018-06-10 Tom Tromey <tom@tromey.com>
* record-full.c (record_full_arch_list_cleanups): Remove.
(record_full_message): Use try/catch.
(record_full_wait_cleanups): Remove.
(record_full_wait_1): Use try/catch.
(record_full_restore): Likewise.