Use TRY/CATCH in remove_prev_frame
authorTom Tromey <tom@tromey.com>
Fri, 25 May 2018 00:23:37 +0000 (18:23 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 25 May 2018 14:58:36 +0000 (08:58 -0600)
commit09a5e1b570eefbc029939fd43c99152996060d95
tree97c643a7f93c79bd67ad7d5681bd51e8b96677a6
parentd8dab6c3bbe6432ff20237e621f2f3a3d30d4d4b
Use TRY/CATCH in remove_prev_frame

This changes remove_prev_frame to use TRY/CATCH instead of a cleanup.
TRY/CATCH seemed appropriate here because the cleanup is only needed
in the case where an exception is thrown.

Tested by the buildbot.

ChangeLog
2018-05-25  Tom Tromey  <tom@tromey.com>

* frame.c (remove_prev_frame): Remove.
(get_prev_frame_if_no_cycle): Use TRY/CATCH.
gdb/ChangeLog
gdb/frame.c
This page took 0.026176 seconds and 4 git commands to generate.