public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: David Taylor <dtaylor@usendtaylorx2l.lss.emc.com>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: possible QTFrame enhancement
Date: Thu, 16 Oct 2014 17:03:00 -0000	[thread overview]
Message-ID: <13378.1413479010@usendtaylorx2l> (raw)
In-Reply-To: <4250.1411074396@usendtaylorx2l>

In mid September I asked about a possible QTFrame / tfind enhancement.
That message generated zero responses.

I'm hoping to get back in a day or two to our effort of adding the
setting of memory and registers at tracepoints.  (It's more than half
done; but, before I finished I got yanked onto another project.)  I
won't be working on implementing these proposed QTFrame / tframe
enhancements until that (and possibly some other stuff) is done.

For the remote protocol there currently several variants of the QTFrame
message:

    QTFrame:n
    QTFrame:pc:addr
    QTFrame:tdp:t
    QTFrame:range:start:end
    QTFrame:outside:start:end

And variants of the tfind command:

    tfind end
    tfind line
    tfind none
    tfind outside
    tfind pc
    tfind range
    tfind start
    tfind tracepoint

We (EMC) have a developer who runs trace experiments that generate
*LOTS* of tracepoint frames -- possibly 100,000 or more!  He then likes
to find an anomaly and search *BACKWARDS* to find where things first
started going bad.

Other than the first QTFrame variant above -- which does no searching --
all of the above QTFrame variants search *FORWARDS* from the current
tracepoint frame.

I would like to propose that tfind be modified from

    tfind <existing-subcommand> <existing-arguments>
to

    tfind <existing-subcommand> [ -r | --reverse] <existing-arguments>

and that the QTFrame remote protocol message have an optional `-' before
the first `:' to indicate reverse:

    QTFrame-:n
    QTFrame-:pc:addr
    QTFrame-:tdp:t
    QTFrame-:range:start:end
    QTFrame-:outside:start:end

And for qSupported I propose:

    QTFrameReverse+
    QTFrameReverse-

to indicate whether it is supported or not.

Does this proposal seem reasonable to people?  Would an implementation
of this stand a resonable chance of being accepted back?

Thanks.

David

  reply	other threads:[~2014-10-16 17:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 21:06 David Taylor
2014-10-16 17:03 ` David Taylor [this message]
2014-10-16 21:15   ` Pedro Alves
2014-10-16 23:23     ` Stan Shebs
2014-10-22 18:37       ` David Taylor
2014-10-29 19:01       ` Doug Evans
2014-10-29 22:18         ` Stan Shebs
2015-02-13 19:50       ` filtering traceframes (was: Re: possible QTFrame enhancement) David Taylor
2015-02-22 16:38         ` Doug Evans

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=13378.1413479010@usendtaylorx2l \
    --to=dtaylor@usendtaylorx2l.lss.emc.com \
    --cc=gdb@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).