(Ada) C++fy conditional string when catching exception.
authorXavier Roirand <roirand@adacore.com>
Thu, 25 Jan 2018 10:09:23 +0000 (11:09 +0100)
committerXavier Roirand <roirand@adacore.com>
Wed, 31 Jan 2018 12:42:30 +0000 (13:42 +0100)
commit56ecd069f031d6bcdaa46664c68a16cb27b379c3
treec895e051c399a2881e766e2ac0221b2c7cac41a1
parent4fa955b25e31cd071ca7f3b03a2cc89811f9705d
(Ada) C++fy conditional string when catching exception.

This commit C++fy the conditional string used when catching Ada exception.

gdb/ChangeLog:

        * ada-lang.c (catch_ada_exception_command_split)
        (create_ada_exception_catchpoint) <cond_string>: Change parameter
        type.  Update code accordingly.
        (catch_ada_exception_command, catch_ada_handlers_command): Use
        C++ string instead of char* for conditional var.
        (catch_ada_assert_command_split) <cond_string>: Change parameter
        type.  Update code accordingly.
        (catch_assert_command): Use C++ string instead of char* for
        conditional var.
        * ada-lang.h (create_ada_exception_catchpoint) <cond_string>:
        Update declaration.
        * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception):
        Use std::string instead of char* for condition string.

Tested on x86_64-linux.
gdb/ada-lang.c
gdb/ada-lang.h
gdb/mi/mi-cmd-catch.c