Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Gustavo\, Luis" <luis_gustavo@mentor.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc target-side break conditions 3/5 v2]  GDB-side changes
Date: Mon, 06 Feb 2012 20:27:00 -0000	[thread overview]
Message-ID: <m3vcnjn1xa.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4F230A13.9060400@mentor.com> (Luis Gustavo's message of "Fri, 27	Jan 2012 18:33:23 -0200")

>>>>> "Luis" == Luis Gustavo <luis_gustavo@mentor.com> writes:

Luis> A few more changes on this patch. It addresses all the previous
Luis> comments and suggestions.

I have a few minor notes, nothing serious.
I think someone other than me should do the final review of this patch.

A couple other things I wanted to mention --

First, I think this is a great patch series and I like it quite a bit.
I want to see it go in.

Second, I was wondering if you have any plans to extend agent
expressions to provide more coverage for DWARF expressions.  It would be
somewhat interesting, I think, to get some idea of how often GCC
generates untranslatable expressions for real code.  (Like, looking at
all the DWARF expressions in the distro... or at least some big
libraries.)

Luis> +static const char *condition_evaluation_enums[] = {

After Jan's patch I think you will need another const in there.

Luis> +/* Translate a condition evaluation mode MODE into either "gdb"
Luis> +   or "target.  This is used mostly to translate from "auto" to the

Missing quote after "target".

Luis> +  /* Signals that the condition has changed since the last time
Luis> +     we updated the global location list.  This means the condition
Luis> +     needs to be sent to the target again.  This is used together
Luis> +     with target-side breakpoint conditions.
Luis> +
Luis> +     This field has 3 special values:
Luis> +
Luis> +     0: It means there has been no condition changes.
Luis> +
Luis> +     1: It means this location had its condition modified.
Luis> +
Luis> +     2: It means we already marked all the locations that are duplicates
Luis> +     of this location and thus we don't need to call
Luis> +     force_breakpoint_reinsertion (...) for this location.  */
Luis> +
Luis> +  char condition_changed;

How about an enum instead of numerical constants?

Tom


  reply	other threads:[~2012-02-06 20:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27 20:34 Luis Gustavo
2012-02-06 20:27 ` Tom Tromey [this message]
2012-02-07 11:16   ` Luis Gustavo
2012-02-08 19:33     ` Pedro Alves
2012-02-08 20:56       ` Luis Gustavo
2012-02-09 12:56         ` Pedro Alves
2012-02-22 15:29           ` Luis Gustavo
2012-02-23 17:38             ` Pedro Alves
2012-02-24 12:20               ` Luis Gustavo
2012-02-24 13:01                 ` Pedro Alves
2012-02-24 13:04                   ` Luis Gustavo
2012-02-09 13:00     ` Pedro Alves
2012-02-07 19:13   ` Pedro Alves
2012-02-07 19:26     ` Stan Shebs
2012-02-07 22:08 ` Stan Shebs
2012-02-08 23:13   ` Luis Gustavo

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=m3vcnjn1xa.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=luis_gustavo@mentor.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