Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stanshebs@earthlink.net>
To: gdb-patches@sourceware.org
Subject: Re: [rfc target-side break conditions 3/5 v2]  GDB-side changes
Date: Tue, 07 Feb 2012 22:08:00 -0000	[thread overview]
Message-ID: <4F31A0C9.9080004@earthlink.net> (raw)
In-Reply-To: <4F230A13.9060400@mentor.com>

On 1/27/12 12:33 PM, Luis Gustavo wrote:
> A few more changes on this patch. It addresses all the previous 
> comments and suggestions.
>
>
> I've changed the "info break" output a little. We now display "<mode> 
> evaluates conditions" next to the location description, and we also 
> output that same information via MI. Though it works, i'm not entirely 
> happy with the way it is displayed.
>
> Previously i displayed such information next to the condition field, 
> but it doesn't work right for breakpoints with multiple locations 
> since the conditions are printed for the breakpoint instead of the 
> locations. Suggestions?

Can it actually happen that some locations of a breakpoint are evaluated 
host-side, and other target-side?  It makes my head hurt trying to think 
of an example. :-)

In any case, the note should follow the condition, and I suggest the 
wording "(host evals)" and "(target evals)" if all locations are going 
to be handled the same way.  If locations are varying, then the 
condition follower can say "(host or target evals)" then each location 
description can say just "(host)" or "(target)".  It's a little messier 
to calculate, but users will appreciate the clarity.

(I'm preferring "host" to "gdb", but I suppose that might be confusing 
if GDB was talking to a sprite also running on the host and controlling 
target via JTAG.)

+/* Mark locations as "conditions have changed" in case
+   the target supports evaluating conditions on
+   its side.  */


This is kind of petty, but shouldn't the lines be filled?  I think Emacs would make this a two-line comment.


+      warning (_("Target does not support condition evaluation.\n"
+		 "Using GDB evaluation mode instead."));


I tend to think this should say "breakpoint condition", so it's clear that it's not referring to tracepoint conditions, or command list conditions, or Python conditions, etc.

+      /* If we got here, it means the condition could not be parse to a valid


be parsed

(Eventually we should be nicer and say *why* the condition didn't make the cut. Users would be happy to replace a convenience var with a literal value if they knew that's all that was wrong.)

-  update_global_location_list (0);
+  if (is_breakpoint (bpt))
+    update_global_location_list (1);
+  else
+    update_global_location_list (0);


    update_global_location_list (is_breakpoint (bpt))


Stan




  parent reply	other threads:[~2012-02-07 22:08 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
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 [this message]
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=4F31A0C9.9080004@earthlink.net \
    --to=stanshebs@earthlink.net \
    --cc=gdb-patches@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