Remove cleanups from record-full.c
authorTom Tromey <tom@tromey.com>
Thu, 7 Jun 2018 21:56:37 +0000 (15:56 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 11 Jun 2018 04:19:44 +0000 (22:19 -0600)
commit1ddbba9df5fda9b1af5306fe182a5f1c3197f53a
tree4f814830d0ea4db2cca53cdd593e253a68500612
parent219605fd6adadadfd40234e39254077e044741d0
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.
gdb/ChangeLog
gdb/record-full.c