Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@transmeta.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb@sources.redhat.com
Subject: Re: STOPPED_BY_WATCHPOINT peculiarity
Date: Fri, 05 Apr 2002 08:46:00 -0000	[thread overview]
Message-ID: <15533.54485.208671.923492@casey.transmeta.com> (raw)
In-Reply-To: <6137-Fri05Apr2002141806+0300-eliz@is.elta.co.il>

Eli Zaretskii writes:
 > > Date: Tue, 2 Apr 2002 13:54:47 -0800
 > > From: Doug Evans <dje@transmeta.com>
 > > 
 > >     /* It may be possible to simply continue after a watchpoint.  */
 > >     if (HAVE_CONTINUABLE_WATCHPOINT)
 > >       STOPPED_BY_WATCHPOINT (ecs->ws);
 > > 
 > > STOPPED_BY_WATCHPOINT is a predicate.
 > > Therefore at first glance this code is pointless.
 > 
 > Who said predicates cannot have side effects?

They can, but given the choice they don't.
It's poor programming practice.
[pedantic: setting aside predicates that do result caching and the like]


      reply	other threads:[~2002-04-05 16:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02 13:55 Doug Evans
2002-04-02 14:03 ` Daniel Jacobowitz
2002-04-02 14:20   ` Daniel Jacobowitz
2002-04-11 14:15     ` Michael Snyder
2002-04-05  3:22 ` Eli Zaretskii
2002-04-05  8:46   ` Doug Evans [this message]

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=15533.54485.208671.923492@casey.transmeta.com \
    --to=dje@transmeta.com \
    --cc=eliz@is.elta.co.il \
    --cc=gdb@sources.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