From: Joel Brobecker <brobecker@adacore.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA 5/6] Change Ada exceptions to use std::string
Date: Thu, 30 Nov 2017 22:03:00 -0000 [thread overview]
Message-ID: <20171130220348.cqv3ik5c2lie7xm5@adacore.com> (raw)
In-Reply-To: <20171130030140.14830-6-tom@tromey.com>
Hi Tom,
> This changes the Ada exception code to use std::string, allowing the
> removal of some more cleanups.
>
> ChangeLog
> 2017-11-29 Tom Tromey <tom@tromey.com>
>
> * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
> (mi_cmd_catch_exception): Update.
> * ada-lang.h (create_ada_exception_catchpoint): Update.
> * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
> std::string.
> (create_excep_cond_exprs, ~ada_catchpoint)
> (should_stop_exception, print_one_exception)
> (print_mention_exception, print_recreate_exception): Update.
> (ada_get_next_arg): Remove.
> (catch_ada_exception_command_split): Change two arguments to
> "std::string *". Remove cleanups.
> (ada_exception_catchpoint_cond_string): Change "string" to
> std::string.
> (ada_exception_sal): Remove excep_string parameter.
> (create_ada_exception_catchpoint): Change two arguments to
> "std::string &&".
> (catch_ada_exception_command): Update.
As hinted in my answer to the cover email, I found a few issues.
Attached is a commit that explains and fixes them. If the fixes
look good to you, a new commit combining the two is preapproved.
(I tested my patch on x86_64-linux, limiting myself to gdb.ada)
Thanks!
--
Joel
next prev parent reply other threads:[~2017-11-30 22:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 3:01 [RFA 0/6] remove cleanups from Ada Tom Tromey
2017-11-30 3:01 ` [RFA 2/6] Remove cleanup from create_excep_cond_exprs Tom Tromey
2017-11-30 3:01 ` [RFA 5/6] Change Ada exceptions to use std::string Tom Tromey
2017-11-30 22:03 ` Joel Brobecker [this message]
2017-11-30 22:59 ` Joel Brobecker
2017-11-30 23:53 ` Tom Tromey
2017-12-01 12:10 ` Joel Brobecker
2017-11-30 3:01 ` [RFA 4/6] Remove some more cleanups from ada-lang.c Tom Tromey
2017-11-30 3:01 ` [RFA 1/6] Remove cleanup from old_renaming_is_invisible Tom Tromey
2017-11-30 3:01 ` [RFA 3/6] Remove cleanup from print_mention_exception Tom Tromey
2017-11-30 3:01 ` [RFA 6/6] Remove unnecessary cleanup from ada_collect_symbol_completion_matches Tom Tromey
2017-11-30 22:02 ` [RFA 0/6] remove cleanups from Ada Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171130220348.cqv3ik5c2lie7xm5@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox