From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24916 invoked by alias); 22 Mar 2008 12:56:13 -0000 Received: (qmail 24908 invoked by uid 22791); 22 Mar 2008 12:56:13 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout5.012.net.il (HELO mtaout5.012.net.il) (84.95.2.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 22 Mar 2008 12:55:53 +0000 Received: from HOME-C4E4A596F7 ([84.228.236.188]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0JY4004ECV7JKP11@i_mtaout5.012.net.il> for gdb-patches@sources.redhat.com; Sat, 22 Mar 2008 15:09:21 +0200 (IST) Date: Sat, 22 Mar 2008 12:56:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Fix breakpoint condition that use member variables. In-reply-to: <200803221536.07586.vladimir@codesourcery.com> X-012-Sender: halo1@inter.net.il To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Reply-to: Eli Zaretskii Message-id: Content-transfer-encoding: 7BIT References: <200803221240.16230.vladimir@codesourcery.com> <200803221536.07586.vladimir@codesourcery.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: 2008-03/txt/msg00332.txt.bz2 > From: Vladimir Prus > Date: Sat, 22 Mar 2008 15:36:06 +0300 > Cc: gdb-patches@sources.redhat.com > > > What will happen after your patch if there's also a variable i_ in > > the selected frame? > > The i_ in the breakpoint condition will be associated with the member > variable, not with the variable with selected frame. That could surprise the user. Is it possible to make an additional change to look for possible other interpretations of i_ which are currently in scope, and display a warning of some kind if such possibilities are found?