forked from Imagelibrary/binutils-gdb
more making TRY/CATCH callers look more like real C++ try/catch blocks
All these were caught by actually making TRY/CATCH use try/catch behind the scenes, which then resulted in the build failing (on x86_64 Fedora 20) because there was code between the try and catch blocks. gdb/ChangeLog: 2015-03-07 Pedro Alves <palves@redhat.com> * breakpoint.c (save_breakpoints): Adjust to avoid code between TRY and CATCH. * gdbtypes.c (safe_parse_type): Remove empty line. (types_deeply_equal): * guile/scm-frame.c (gdbscm_frame_name): * linux-thread-db.c (find_new_threads_once): * python/py-breakpoint.c (bppy_get_commands): * record-btrace.c (record_btrace_insert_breakpoint) (record_btrace_remove_breakpoint, record_btrace_start_replaying) (record_btrace_start_replaying): Adjust to avoid code between TRY and CATCH.
This commit is contained in:
@@ -15926,6 +15926,7 @@ save_breakpoints (char *filename, int from_tty,
|
||||
|
||||
if (tp->type != bp_dprintf && tp->commands)
|
||||
{
|
||||
struct gdb_exception exception;
|
||||
|
||||
fprintf_unfiltered (fp, " commands\n");
|
||||
|
||||
@@ -15934,14 +15935,14 @@ save_breakpoints (char *filename, int from_tty,
|
||||
{
|
||||
print_command_lines (current_uiout, tp->commands->commands, 2);
|
||||
}
|
||||
ui_out_redirect (current_uiout, NULL);
|
||||
|
||||
CATCH (ex, RETURN_MASK_ALL)
|
||||
{
|
||||
ui_out_redirect (current_uiout, NULL);
|
||||
throw_exception (ex);
|
||||
}
|
||||
END_CATCH
|
||||
|
||||
ui_out_redirect (current_uiout, NULL);
|
||||
fprintf_unfiltered (fp, " end\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user