diff options
author | Pedro Alves <palves@redhat.com> | 2017-10-04 11:07:28 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-10-04 13:01:20 +0100 |
commit | 73dcd72d4eeec176f769660ddcdefd1f25d0a2ec (patch) | |
tree | 733a256c53bcca16a687a41d1520fafba2f46694 /gdb/guile/scm-breakpoint.c | |
parent | 44704526e482d24baa104764495ca376561a85bf (diff) | |
download | gdb-73dcd72d4eeec176f769660ddcdefd1f25d0a2ec.zip gdb-73dcd72d4eeec176f769660ddcdefd1f25d0a2ec.tar.gz gdb-73dcd72d4eeec176f769660ddcdefd1f25d0a2ec.tar.bz2 |
Move code out of 'between TRY and CATCH'
I tried building GDB with TRY/CATCH mapped to raw C++ try/catch (by
defining GDB_XCPT to GDB_XCPT_RAW_TRY in
gdb/common/common-exceptions.h), and that caught a case of code
written between try and catch. This commit fixes it.
gdb/ChangeLog:
2017-10-04 Pedro Alves <palves@redhat.com>
* guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
out of 'between TRY and CATCH'.
Diffstat (limited to 'gdb/guile/scm-breakpoint.c')
-rw-r--r-- | gdb/guile/scm-breakpoint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/guile/scm-breakpoint.c b/gdb/guile/scm-breakpoint.c index b6b6810..ec75be5 100644 --- a/gdb/guile/scm-breakpoint.c +++ b/gdb/guile/scm-breakpoint.c @@ -988,13 +988,14 @@ gdbscm_breakpoint_commands (SCM self) { print_command_lines (current_uiout, breakpoint_commands (bp), 0); } - current_uiout->redirect (NULL); CATCH (except, RETURN_MASK_ALL) { + current_uiout->redirect (NULL); gdbscm_throw_gdb_exception (except); } END_CATCH + current_uiout->redirect (NULL); result = gdbscm_scm_from_c_string (buf.c_str ()); return result; |