gdb: Remove cleanup from linux-fork.c:inferior_call_waitpid
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 31 Dec 2018 21:23:14 +0000 (21:23 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 3 Jan 2019 21:24:01 +0000 (21:24 +0000)
commita07c88800e88e26fc3a746739f0d2cc8abd30c5d
treee9793fa6cd39259cb8a5e691052881c8a48b69ff
parent26089c494f0d6fa8d4afeab2e2e53b25d299bb9f
gdb: Remove cleanup from linux-fork.c:inferior_call_waitpid

Replace cleanup in linux-fork.c:inferior_call_waitpid with a RAII
object.

gdb/ChangeLog:

* linux-fork.c (class scoped_switch_fork_info): New class.
(inferior_call_waitpid): Update to use scoped_switch_fork_info.
gdb/ChangeLog
gdb/linux-fork.c