From: Pedro Alves <pedro@codesourcery.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: FYI: small simplification in breakpoint.c
Date: Mon, 04 Apr 2011 15:44:00 -0000 [thread overview]
Message-ID: <201104041643.42243.pedro@codesourcery.com> (raw)
In-Reply-To: <m3tyeef2hg.fsf@fleche.redhat.com>
On Monday 04 April 2011 16:41:31, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:
>
> Pedro> On Monday 04 April 2011 16:33:37, Pedro Alves wrote:
> >> catch_exceptions also prints the exception string, if
> >> any (w/ print_any_exception), was the change intentional? (your note seems to
> >> imply this is meant as a 1-1 replacement, but I do see a few
> >> exception_print's below the TRY_CATCH, so I can't tell.)
>
> Pedro> Oh, sorry. Please ignore me. That's catch_exceptionS, but you
> Pedro> replaced a use of catch_exception, which doesn't do that.
>
> FWIW, I'm not a fan of having two functions with such similar names.
> This has bitten me a couple of times.
On my current checkout I see:
$ grep "= catch_exception (" * -rn
breakpoint.c:7958: e = catch_exception (uiout, do_captured_parse_breakpoint,
cli/cli-script.c:1632: e = catch_exception (uiout, wrapped_read_command_file, &args,
cli/cli-interp.c:137: e = catch_exception (uiout, do_captured_execute_command, &args,
mi/mi-main.c:1962: result = catch_exception (uiout, captured_mi_execute_command, command,
remote.c:4070: ex = catch_exception (uiout, remote_start_remote, &args, RETURN_MASK_ALL);
How about we just delete catch_exception? It doesn't seem to add any value.
--
Pedro Alves
next prev parent reply other threads:[~2011-04-04 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 15:22 Tom Tromey
2011-04-04 15:34 ` Pedro Alves
2011-04-04 15:39 ` Pedro Alves
2011-04-04 15:42 ` Tom Tromey
2011-04-04 15:44 ` Pedro Alves [this message]
2011-04-04 16:14 ` Tom Tromey
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=201104041643.42243.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.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