Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stan@codesourcery.com>
To: tromey@redhat.com
Cc: Stan Shebs <stan@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Trace state variables
Date: Fri, 18 Dec 2009 20:03:00 -0000	[thread overview]
Message-ID: <4B2BE005.4090004@codesourcery.com> (raw)
In-Reply-To: <m3hbrsnj2c.fsf@fleche.redhat.com>

Tom Tromey wrote:
>>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:
>>>>>>             
>
> Stan> Since internalvar handling has changed recently, I've left off the
> Stan> value.c bit to make "print $foo" work.
>
> Will this be forthcoming?
>   
Yep, just have to figure out the new way of things.
> Stan> +     case BINOP_ASSIGN:
>
> It seems a little odd to add BINOP_ASSIGN but not BINOP_ASSIGN_MODIFY.
>   
<groan> You're going to make me do it, aren't you. :-)
> Stan>   extern int remote_supports_cond_tracepoints (void);
> Stan> + extern char *unpack_varlen_hex (char *buff, ULONGEST *result);
>
> It seems like this could be in a header somewhere.
>   
This is one of the temporary hacks pending target-vectorization of 
tracepoint ops.
> Stan> + /* The list of all trace state variables.  We don't retain pointers to
> Stan> +    any of these for any reason - API is by name or number only - so it
> Stan> +    works to have a vector of objects.  */
> Stan> + 
> Stan> + VEC(tsv_s) *tvariables;
> Stan> + 
> Stan> + /* The next integer to assign to a variable.  */
> Stan> + 
> Stan> + int next_tsv_number = 1;
>
> It seems like these, plus some of the new functions, could be static.
> It is hard to say for sure since I don't know what future patches might do.
>   
They could be, yeah, remote.c code will handle tsv's one-by-one, no need 
to pass whole list.
> Stan> + static void
> Stan> + tvariables_info (char *args, int from_tty)
> [...]
> Stan> +   printf_filtered (_("Name\t\t  Initial\tCurrent\n"));
>
> I think that brand-new formatted output should be done using the ui_out
> machinery.  Is there some drawback to doing that?  I really don't
> know... I would have expected ui_out to be used universally but instead
> it seems somewhat random, and I don't know why.  (I assume that whoever
> was doing this transition ran out of steam... ?)
>   
I can't even remember why I didn't use ui_out.  Well, that's why we do 
reviews... :-)

Stan


  reply	other threads:[~2009-12-18 20:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-15 13:51 Stan Shebs
2009-12-15 15:53 ` Eli Zaretskii
2009-12-15 19:04   ` Stan Shebs
2009-12-15 19:17 ` Tom Tromey
2009-12-18 20:03   ` Stan Shebs [this message]
2009-12-18 20:47     ` Tom Tromey
2009-12-29 17:21 ` Stan Shebs

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=4B2BE005.4090004@codesourcery.com \
    --to=stan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@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