Use SCOPE_EXIT in gdbarch-selftest.c
authorPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 18:58:30 +0000 (18:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 19:04:07 +0000 (19:04 +0000)
commite587ef421eb7e009c6a69da55c269e9df45093e4
treee215a8c36b3a7dbca73b0b7ee092232758e3b863
parent77f0e74cbe2ee7e874432776a0394a3d2a7a4342
Use SCOPE_EXIT in gdbarch-selftest.c

Replace the custom local class with a SCOPE_EXIT.

gdb/ChangeLog:
2019-01-23  Pedro Alves  <palves@redhat.com>

* gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
gdb/ChangeLog
gdb/gdbarch-selftests.c