From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: Philippe Waroquiers <philippe.waroquiers@skynet.be>,
gdb-patches@sourceware.org
Subject: Re: [patch+NEWS] Avoid false valgrind warnings on linux_ptrace_test_ret_to_nx
Date: Wed, 20 Feb 2013 16:08:00 -0000 [thread overview]
Message-ID: <20130220160808.GA19181@host2.jankratochvil.net> (raw)
In-Reply-To: <5124F214.7020506@redhat.com>
On Wed, 20 Feb 2013 16:56:04 +0100, Pedro Alves wrote:
> However, one unwritten rule (not just GDB's) that applies more broadly
> than configure things is to not overengineer things, do the minimal
> necessary, and worry only about unknown problems if they turn
> out to be real problems.
In such case we could use gdb_assert / internal_error everywhere.
This was what I was submitting before as any GDB problems get then
automatically bugreported with context via ABRT, probably also Apport etc.
I was told on gdb-patches warning calls are preferred in such case instead as
it does not break the user's debugging session.
OTOH here you ask for the opposite, unchecked inclusion of include file which
is very complicated with compiler-dependent parts and arch-specific code,
which all seem to me to possibly cause compilation failures.
So there should be either the way of (1) fatal error in the case of troubles
or (2) ignore (warn only) any troubles.
I do not see a clear direction of (1) or (2), initially I tried to go (1) and
now I try to go (2) but neither seems OK for you.
Jan
next prev parent reply other threads:[~2013-02-20 16:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 18:42 [patch] " Jan Kratochvil
2013-02-19 19:11 ` Pedro Alves
2013-02-20 14:06 ` Jan Kratochvil
2013-02-20 15:06 ` Pedro Alves
2013-02-20 15:24 ` [patch+NEWS] " Jan Kratochvil
2013-02-20 15:56 ` Pedro Alves
2013-02-20 16:08 ` Jan Kratochvil [this message]
2013-02-20 17:30 ` Pedro Alves
2013-02-25 14:33 ` Jan Kratochvil
2013-02-25 18:10 ` Pedro Alves
2013-02-26 3:00 ` Jan Kratochvil
2013-02-20 20:15 ` Andreas Schwab
2013-02-25 14:19 ` Jan Kratochvil
2013-02-19 21:09 ` [patch] " Philippe Waroquiers
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=20130220160808.GA19181@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=philippe.waroquiers@skynet.be \
/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