Exception safety in ravenscar-thread.c
authorTom Tromey <tromey@adacore.com>
Tue, 5 Feb 2019 09:57:21 +0000 (02:57 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 15 Feb 2019 20:53:42 +0000 (13:53 -0700)
commit5b6ea500d554b173e63e1f8f0344d568ad347463
treea45c5aa5d4d73cef9093a37468ab37957c5f5615
parente397fd39c62c70900306fa206ebcae1a4853db8b
Exception safety in ravenscar-thread.c

This changes some code in ravenscar-thread.c to use scoped_restore.  I
am not sure if it matters in practice, but this makes these methods
exception-safe in case the methods lower in the target stack can
throw.

gdb/ChangeLog
2019-02-15  Tom Tromey  <tromey@adacore.com>

* ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
(ravenscar_thread_target::stopped_by_hw_breakpoint)
(ravenscar_thread_target::stopped_by_watchpoint)
(ravenscar_thread_target::stopped_data_address)
(ravenscar_thread_target::core_of_thread): Use scoped_restore.
gdb/ChangeLog
gdb/ravenscar-thread.c