From: Tom Tromey <tom@tromey.com>
To: Pedro Alves <palves@redhat.com>
Cc: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] Change exceptions.h functions to use gdb::function_view
Date: Wed, 27 Sep 2017 20:26:00 -0000 [thread overview]
Message-ID: <87o9pvyjlb.fsf@pokyo> (raw)
In-Reply-To: <4098e86f-d084-fb3b-ea9b-0d5565ddd930@redhat.com> (Pedro Alves's message of "Wed, 27 Sep 2017 20:43:20 +0100")
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> I'm borderline about this. I have to say that I question the value of
Pedro> catch_exceptions&co, over just using TRY/CATCH + a scoped_restore(current_uiout)
Pedro> in the try scope + printing the exception. A TRY/CATCH is likely to be
Pedro> easier to understand and debug, I think.
[...]
Pedro> Did you consider this?
Nope. This was actually just a preparatory patch for another const change.
I can look into the change though. I agree it would be better.
>> + {
>> + return do_captured_thread_select (inner_uiout, tidstr);
>> + },
Pedro> Note the patch has several cases of tabs vs spaces like above.
Sorry about that.
Was there ever a decision about not using tabs?
In this case I think the problem is that Emacs isn't indenting lambdas
well.
Pedro> I don't think we need the casts nowadays. catch_errors takes a const
Pedro> string (since the -Wwrite-strings patch).
Ok.
Tom
next prev parent reply other threads:[~2017-09-27 20:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-27 16:53 Tom Tromey
2017-09-27 19:43 ` Pedro Alves
2017-09-27 20:26 ` Tom Tromey [this message]
2017-09-27 22:37 ` Pedro Alves
2017-09-28 0:02 ` [users/palves/catch_exceptions] [PATCH] zap catch_exceptions (Re: [RFA] Change exceptions.h functions to use gdb::function_view) Pedro Alves
2017-09-28 2:04 ` Tom Tromey
2017-09-28 9:13 ` Pedro Alves
2017-09-28 19:53 ` 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=87o9pvyjlb.fsf@pokyo \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@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