Make mi_cmd_break_insert exception-safe.
commit8569f86592ff707faaa0a96849bdea4169914a77
authorVladimir Prus <vladimir@codesourcery.com>
Sun, 27 Jan 2008 14:06:05 +0000 (27 17:06 +0300)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 1 Feb 2008 16:22:57 +0000 (1 19:22 +0300)
tree5792393adeb7148630a0b2cc559eb8b5eed08529
parentb4f6174ec18f80cad113928b6461d8afcbd26f95
Make mi_cmd_break_insert exception-safe.

[gdb]
* breakpoint.c (break_command_1): Return void.
(break_command_really): Return void.  Rethrow
exceptions instead of returning.
(gdb_breakpoint): Remove the error_message parameter.
Return void.  Rename to set_breakpoint.
* gdb.h (gdb_breakpoint): Rename and move to...
        * breakpoint.h (set_breakpoint): ...here.
* mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
event hooks even if exception is thrown.  Adjust to
gdb_breakpoint interface changes.

[gdb/testsuite]
* gdb.mi/basic.c (return_1): New function.
* gdb.mi/mi-break.exp: Make sure that failed -break-insert
don't cause future evaluations of function to report
creation of internal breakpoints.
gdb/breakpoint.c
gdb/breakpoint.h
gdb/gdb.h
gdb/mi/mi-cmd-break.c
gdb/testsuite/gdb.mi/basics.c
gdb/testsuite/gdb.mi/mi-break.exp