This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/4] (Ada) C++fy conditional string when catching exception.


On Mon, Jan 29, 2018 at 01:46:59PM +0100, Xavier Roirand wrote:
> 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:

Missing closing ')'.

>         Use std::string instead of char* for condition string.

Looks good to me. Well done!

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]