Use SCOPE_EXIT in write_gcore_file
authorTom Tromey <tom@tromey.com>
Mon, 28 Jan 2019 17:51:01 +0000 (10:51 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 6 Mar 2019 23:04:31 +0000 (16:04 -0700)
commita7b1986e13c60f2a10721863ef684a18daccaaf7
treec6eb0b745c9f69010b7137fa07461a14bf6d945c
parent0ccf4211fdec30fab46a5552ecfbe8e7ca98d50f
Use SCOPE_EXIT in write_gcore_file

This replaces a TRY/CATCH in write_gcore_file with a use of SCOPE_EXIT
instead.  I find that this is simpler to understand.

2019-03-06  Tom Tromey  <tom@tromey.com>

* gcore.c (write_gcore_file): Use SCOPE_EXIT.
gdb/ChangeLog
gdb/gcore.c