public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* possible QTFrame enhancement
@ 2014-09-18 21:06 David Taylor
  2014-10-16 17:03 ` David Taylor
  0 siblings, 1 reply; 9+ messages in thread
From: David Taylor @ 2014-09-18 21:06 UTC (permalink / raw)
  To: gdb

For the remote protocol QTFrame message there are everal variants:

    QTFrame:n

        select the n'th tracepoint frame from the buffer

    QTFrame:pc:addr

        select the first tracepoint frame *AFTER* the currently seelctd
        frame whose PC is addr.

    QTFrame:tdp:t

        select the first tracepoint frame *AFTER* the currently selected
        tracepoint frame that is a hit of tracepoint t.

    QTFrame:range:start:end

        select the first tracepoint frame *AFTER* the currently selected
        fraome whose PC is between start and end

    QTFrame:outside:start:end

        select the first tracepoint frame *AFTER* the currently selected
        frame whose PC is outside the range of addresses.

Which are used by the tfind command and its subcommands:

    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.

If there was support for searching backwards, what form should it take?

. what should the QTFrame message(s) be?

. what should the tfind commands be?

. should there be a 'token' returned by qSupported to indicate support
for the new messages?  And if so, what 'token'?  Or should GDB figure it
out by sending one of the messages and trusting that it will get an
error if it is unsupported?

David

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-22 16:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-18 21:06 possible QTFrame enhancement David Taylor
2014-10-16 17:03 ` David Taylor
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

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).