From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Move "tee" building down to interpreter::set_logging_proc
Date: Thu, 02 Feb 2017 17:45:00 -0000 [thread overview]
Message-ID: <1fc904d1eef0f26d27539a2b2b4da5ab@polymtl.ca> (raw)
In-Reply-To: <bc3a4607-f332-2e44-b76d-58dd956295b1@redhat.com>
On 2017-02-02 12:39, Pedro Alves wrote:
> On 02/02/2017 03:17 PM, Simon Marchi wrote:
>> On 2017-02-02 09:28, Pedro Alves wrote:
>>> @@ -109,13 +109,13 @@ extern int current_interp_named_p (const char
>>> *name);
>>>
>>> /* Call this function to give the current interpreter an opportunity
>>> to do any special handling of streams when logging is enabled or
>>> - disabled. START_LOG is 1 when logging is starting, 0 when it
>>> ends,
>>> - and OUT is the stream for the log file; it will be NULL when
>>> - logging is ending. LOGFILE is non-NULL if the output streams
>>> + disabled. START_LOG is true when logging is starting, false when
>>
>> START_LOG is not there anymore. From what I understand, it's replaced
>> with LOGFILE being null or not?
>
> You're right. How about this:
>
> -- i/gdb/interps.h
> +++ w/gdb/interps.h
> @@ -109,10 +109,10 @@ extern int current_interp_named_p (const char
> *name);
>
> /* Call this function to give the current interpreter an opportunity
> to do any special handling of streams when logging is enabled or
> - disabled. START_LOG is true when logging is starting, false when
> - it ends. LOGFILE is the stream for the log file; it's NULL when
> - logging is ending. LOGGING_REDIRECT is false if the output streams
> - are to be tees, with the log file as one of the outputs. */
> + disabled. LOGFILE is the stream for the log file when logging is
> + starting and is NULL when logging is ending. LOGGING_REDIRECT is
> + false if the output streams are to be tees, with the log file as
> + one of the outputs. */
>
> extern void current_interp_set_logging (ui_file_up logfile,
> bool logging_redirect);
>
>
> OK?
Yeah sounds good.
Though the pre-existing sentence "...if the output streams are to be
tees" is not that clear to me, I'm not sure I would understand if I
didn't already know what the function does. Why does it talk about
multiple output streams that have to be tees, isn't there only one tee?
Or is it meant to be a past tense verb, in which case it should be
something like "...are to be tee-ed"? I just find the formulation
awkward.
next prev parent reply other threads:[~2017-02-02 17:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-02 14:28 Pedro Alves
2017-02-02 15:17 ` Simon Marchi
2017-02-02 17:39 ` Pedro Alves
2017-02-02 17:45 ` Simon Marchi [this message]
2017-02-02 18:04 ` Pedro Alves
2017-02-02 20:42 ` Simon Marchi
2017-02-02 22:12 ` Pedro Alves
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=1fc904d1eef0f26d27539a2b2b4da5ab@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--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