Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Stan Shebs <stan@codesourcery.com>
Cc: "gdb\@sourceware.org" <gdb@sourceware.org>
Subject: Re: [RFC] Collecting strings at tracepoints
Date: Tue, 08 Jun 2010 21:19:00 -0000	[thread overview]
Message-ID: <m3d3w1i5ok.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4C0983C3.6000604@codesourcery.com> (Stan Shebs's message of	"Fri, 04 Jun 2010 15:52:51 -0700")

>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:

Stan> For tracepoint collection, I think the automatic heuristic is probably
Stan> not a good idea.

I agree.

Stan> Looking at how '@' syntax works, we can extend it without disrupting
Stan> expression parsing much.  For instance, "str@@" could mean to
Stan> deference str, and collect bytes until a 0 is seen, or the print
Stan> elements limit is reached (implication is that we would have to tell
Stan> the target that number).  The user could exercise even finer control
Stan> by supplying the limit explicitly, for instance "str@/80" to collect
Stan> at most 80 chars of the string.  ("str@@80" seems like it would cause
Stan> ambiguity problems vs "str@@").

Wouldn't it be "*str @@ 80" (note the leading "*").

I'm not super fond of the syntax, but I think it is probably as good as
anything else I'd think up :-)

Stan> Under the hood, it's not yet clear if we will need additional
Stan> bytecodes, but probably so.

If you add additional AX bytecodes, please consider adding what is
needed for DWARF location expressions at the same time:

    http://sourceware.org/bugzilla/show_bug.cgi?id=11662

It seems better to batch such changes.

Tom


  parent reply	other threads:[~2010-06-08 21:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-04 22:53 Stan Shebs
2010-06-04 23:00 ` Michael Snyder
2010-06-08 21:19 ` Tom Tromey [this message]
2010-06-15 22:51 ` Doug Evans
2010-06-16  0:09   ` Stan Shebs
2010-06-16 18:00     ` Doug Evans
2010-06-16 18:18       ` Stan Shebs
2010-06-16 18:27         ` 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=m3d3w1i5ok.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=stan@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