From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28460 invoked by alias); 21 May 2010 05:36:44 -0000 Received: (qmail 28451 invoked by uid 22791); 21 May 2010 05:36:43 -0000 X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 May 2010 05:36:37 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L2R00D008R62L00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Fri, 21 May 2010 08:36:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.33.125]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L2R00C2A8WXVQ10@a-mtaout21.012.net.il>; Fri, 21 May 2010 08:36:34 +0300 (IDT) Date: Fri, 21 May 2010 07:05:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Forbid watchpoint on a constant value In-reply-to: <201005202054.53548.sergiodj@redhat.com> To: Sergio Durigan Junior Cc: brobecker@adacore.com, gdb-patches@sourceware.org, jan.kratochvil@redhat.com Reply-to: Eli Zaretskii Message-id: <831vd5rf2u.fsf@gnu.org> References: <201005181418.24324.sergiodj@redhat.com> <201005202022.30149.sergiodj@redhat.com> <20100520233449.GO3019@adacore.com> <201005202054.53548.sergiodj@redhat.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00475.txt.bz2 > From: Sergio Durigan Junior > Date: Thu, 20 May 2010 20:54:50 -0300 > Cc: gdb-patches@sourceware.org, Jan Kratochvil > > FWIW, I actually was thinking a little more about the subject, and I agree > with your suggestion. GDB may not forbid the user to do what he wants (even > if that appears to be totally non-sense). I think a warning message, in this > case, is the best option indeed. How about asking for confirmation Watch the constant value "5" (y or n)?