Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Doug Evans <dje@google.com>
Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org
Subject: Re: [patch] [python] Implement stop_p for gdb.Breakpoint
Date: Fri, 11 Mar 2011 01:55:00 -0000	[thread overview]
Message-ID: <m3mxl28xde.fsf@fleche.redhat.com> (raw)
In-Reply-To: <AANLkTi=uXAf2htT0ovQ1bp_z8CF2Txwpj-kdBDctmW5v@mail.gmail.com>	(Doug Evans's message of "Wed, 9 Mar 2011 20:41:05 -0800")

Tom> My reason is that the Python method is an implementation detail of some
Tom> kind of "stop point" provided by a Python script.  It is not readily
Tom> mutable by the user.  On the other hand, the condition is something
Tom> explicitly under the user's control.

Doug> That sounds a bit weird.
Doug> The python method is part of an API.
Doug> APIs are not implementation details.

I think we are using the same words to mean different things.

I was using this from the point of view of writing a gdb extension using
the new feature.  E.g., consider the log-printf code.  The new method is
used by log-printf to do its work.  Here, the method is an
implementation detail of log-printf.

I'm sorry for being unclear.

Tom> I think the most conservative approach is to make it an error for the
Tom> user to set a condition on a breakpoint that has a stop_p method, and
Tom> vice versa.  That preserves the ability to make a different decision
Tom> later.

Doug> That's what I'd do.  I don't see the contradiction.
Doug> [Remember I'm talking about an *intuitive* sense here, not any literal
Doug> sense ("literal" as in something I might intend we document).
Doug> If my intuitive sense doesn't work for you, you don't have to use it.
Doug> :-)  We seem to both agree on the end result.]

I don't really agree, but I think it is less important than getting some
variant of the patch in.

Phil is already implementing this and I think should have a new patch
shortly.

Tom


  reply	other threads:[~2011-03-10 21:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 16:33 Phil Muldoon
2011-02-23 18:05 ` Eli Zaretskii
2011-02-24  7:02 ` Doug Evans
2011-02-24  9:50   ` Phil Muldoon
     [not found]     ` <AANLkTikXyH+zYkFRoUmihmDYj_nxU5648UnF5T9G-Wte@mail.gmail.com>
2011-02-28 21:19       ` Doug Evans
2011-03-07 16:43         ` Phil Muldoon
2011-03-07 20:52   ` Tom Tromey
2011-03-10  6:47     ` Doug Evans
2011-03-11  1:55       ` Tom Tromey [this message]
2011-03-11 11:59         ` Phil Muldoon
2011-03-11 18:27           ` Tom Tromey
2011-03-11 20:59             ` Doug Evans
2011-03-13 22:28               ` Phil Muldoon
2011-03-14 14:49                 ` Tom Tromey
2011-03-14 17:56                   ` Phil Muldoon
2011-03-14 20:01                     ` Tom Tromey
2011-03-14 21:27                     ` Eli Zaretskii
2011-03-11 18:36           ` Tom Tromey
2011-03-07 22:01 ` 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=m3mxl28xde.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pmuldoon@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