Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org,  Stan Shebs <stan@codesourcery.com>
Cc: Vladimir Prus <vladimir@codesourcery.com>
Subject: Re: [MI tracepoints 4/9] -trace-start/end/status
Date: Mon, 15 Mar 2010 18:46:00 -0000	[thread overview]
Message-ID: <201003151846.05739.pedro@codesourcery.com> (raw)
In-Reply-To: <201003141154.07272.vladimir@codesourcery.com>

On Sunday 14 March 2010 08:54:07, Vladimir Prus wrote:

>         (start_tracing, stop_traceing, trace_status_mi): Declare.

Typo: stop_traceing.

> +/* Report the trace status to uiout, in a way suitable for MI, and not
> +   suitable for CLI. If ON_STOP is true, suppress a few fields that

Double space after period.

> +   are not meaningful in -trace-stop response.

"the -trace-stop response"

> +
> +   The implementation is essentially parallel to trace_status_command, but
> +   merging them will result in unreadable code.
> + */

*/ at end of comment, not in new line:

 "... in unreadable code.  */" 

> +      /** Unlike CLI, do not show the state of 'disconnected-tracing' variable.

s,/**,/* :

    /* Unlike CLI,


> +         Given that frontend gets the status either on -trace-stop, or from

"the frontend gets"

> +         -trace-status after re-connection, it does not seem like this
> +         information is necessary for anything. It is not necessary for either
> +         figuring the vital state of the target nor for navigation of trace
> +         frames. If the frontend wants to show the current state is some
> +         configure dialog, it can request the value when such dialog is
> +         invoked by the user.  */

Double space after period everywhere please.

+  ui_out_field_int (uiout, "buffer-size",  (int) ts->buffer_size);
+  ui_out_field_int (uiout, "buffer-free",  (int) ts->buffer_free);

When these optional fields aren't reported by the target, this
will print -1.  I don't see that mentioned in the manual.  Is
this intended?  I would have expected optional fields to just
not be present, as is common in MI.  trace_status_command does
that too.

Hmmm, I don't see any of the qTStatus optional fields described
anywhere in manual.  Stan?  Am I just looking at the wrong
place?

-- 
Pedro Alves


  reply	other threads:[~2010-03-15 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-14  8:54 Vladimir Prus
2010-03-15 18:46 ` Pedro Alves [this message]
2010-03-15 18:47   ` Pedro Alves
2010-03-15 18:58   ` Stan Shebs
2010-03-16 12:12   ` Vladimir Prus
2010-03-16 13:58     ` 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=201003151846.05739.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=stan@codesourcery.com \
    --cc=vladimir@codesourcery.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