diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-10-11 13:48:19 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-10-11 13:48:19 +0000 |
commit | 349774efe258cff6b365b72df07f6ce2eb76cbd6 (patch) | |
tree | bf35bfb985653376ef70588140ebb7e97ea5bd45 /gdb/ChangeLog | |
parent | 761269c8497f8f5e1cee4a4695ba48fb74fa86a3 (diff) | |
download | gdb-349774efe258cff6b365b72df07f6ce2eb76cbd6.zip gdb-349774efe258cff6b365b72df07f6ce2eb76cbd6.tar.gz gdb-349774efe258cff6b365b72df07f6ce2eb76cbd6.tar.bz2 |
New GDB/MI commands to catch Ada exceptions
This patch introduces two new GDB/MI commands implementing the equivalent
of the "catch exception" and "catch assert" GDB/CLI commands.
gdb/ChangeLog:
* breakpoint.h (init_ada_exception_breakpoint): Add parameter
"enabled".
* breakpoint.c (init_ada_exception_breakpoint): Add parameter
"enabled". Set B->ENABLE_STATE accordingly.
* ada-lang.h (ada_exception_catchpoint_kind): Move here from
ada-lang.c.
(create_ada_exception_catchpoint): Add declaration.
* ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
(create_ada_exception_catchpoint): Make non-static. Add new
parameter "disabled". Use it in call to
init_ada_exception_breakpoint.
(catch_ada_exception_command): Add parameter "enabled" in call
to create_ada_exception_catchpoint.
(catch_assert_command): Likewise.
* mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
Add declarations.
* mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
"catch-exception" commands.
* mi/mi-cmd-catch.c: Add #include "ada-lang.h".
(mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b07f1c5..b8f01c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,29 @@ 2013-10-11 Joel Brobecker <brobecker@adacore.com> + * breakpoint.h (init_ada_exception_breakpoint): Add parameter + "enabled". + * breakpoint.c (init_ada_exception_breakpoint): Add parameter + "enabled". Set B->ENABLE_STATE accordingly. + * ada-lang.h (ada_exception_catchpoint_kind): Move here from + ada-lang.c. + (create_ada_exception_catchpoint): Add declaration. + * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h. + (create_ada_exception_catchpoint): Make non-static. Add new + parameter "disabled". Use it in call to + init_ada_exception_breakpoint. + (catch_ada_exception_command): Add parameter "enabled" in call + to create_ada_exception_catchpoint. + (catch_assert_command): Likewise. + + * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception): + Add declarations. + * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and + "catch-exception" commands. + * mi/mi-cmd-catch.c: Add #include "ada-lang.h". + (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions. + +2013-10-11 Joel Brobecker <brobecker@adacore.com> + * ada-lang.c (enum ada_exception_catchpoint_kind): Renames "enum exception_catchpoint_kind". Replace the "ex_" prefix of all its enumerates with "ada_". Update the rest of this |