From: Eli Zaretskii <eliz@gnu.org>
To: gdb-patches@sourceware.org
Subject: Re: patch for invalid hw breakpoints
Date: Fri, 02 Jun 2006 20:56:00 -0000 [thread overview]
Message-ID: <uwtbzcm3u.fsf@gnu.org> (raw)
In-Reply-To: <20060602135237.GA23384@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 2 Jun 2006 09:52:38 -0400)
> Date: Fri, 2 Jun 2006 09:52:38 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb-patches@sourceware.org, Nathan Sidwell <nathan@codesourcery.com>
>
> Is this contract that you're asserting documented anywhere?
Not that I know of.
> Anyway, this is not a productive argument. Let's change remote.c
> instead. If someone ever finishes separating into a location per
> watched value, then we can arrange to only remove what we inserted
> at that later time.
That'd be fine with me.
> > Meanwhile, I really don't like the fact that remote.c throws an
> > internal error in situations that don't require that. To me, internal
> > error means a situation akin to SIGSEGV: something is dead wrong, but
> > the code has no means of figuring out what's that.
>
> If I were writing this code it would be a gdb_assert, which generates
> an internal error. Those are designed for two situations: hopelessly
> confused, and violated assumptions. This is the latter, not the
> former. It's thrown here because here is where we can detect that it
> happened.
Assertions for violated assumptions reveal bugs. In this case, the
bug is that the assumption was invalid.
next prev parent reply other threads:[~2006-06-02 20:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <447EE9A8.4050800@codesourcery.com>
2006-06-01 17:21 ` Eli Zaretskii
2006-06-01 17:26 ` Daniel Jacobowitz
2006-06-01 17:46 ` Nathan Sidwell
2006-06-01 18:03 ` Daniel Jacobowitz
2006-06-01 20:53 ` Eli Zaretskii
2006-06-01 21:12 ` Daniel Jacobowitz
2006-06-02 8:44 ` Eli Zaretskii
2006-06-02 13:52 ` Daniel Jacobowitz
2006-06-02 20:56 ` Eli Zaretskii [this message]
2006-06-02 20:57 ` Daniel Jacobowitz
2006-06-05 14:30 ` Nathan Sidwell
2006-06-05 19:58 ` Eli Zaretskii
2006-06-02 7:26 ` Nathan Sidwell
2006-06-02 8:13 ` Eli Zaretskii
2006-06-01 18:33 ` Nathan Sidwell
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=uwtbzcm3u.fsf@gnu.org \
--to=eliz@gnu.org \
--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