From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25031 invoked by alias); 30 Nov 2007 20:53:05 -0000 Received: (qmail 25023 invoked by uid 22791); 30 Nov 2007 20:53:05 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (213.8.233.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Nov 2007 20:52:59 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-220-201.inter.net.il [83.130.220.201]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EGH86850 (AUTH halo1); Fri, 30 Nov 2007 22:52:54 +0200 (IST) Date: Fri, 30 Nov 2007 20:53:00 -0000 Message-Id: From: Eli Zaretskii To: Michael Snyder CC: ghost@cs.msu.su, gdb-patches@sources.redhat.com In-reply-to: <1196384986.2501.141.camel@localhost.localdomain> (message from Michael Snyder on Thu, 29 Nov 2007 17:09:46 -0800) Subject: Re: Variable identification (Was: [RFA] Don't reset watchpoint block on solib load.) Reply-to: Eli Zaretskii References: <200711202013.47537.vladimir@codesourcery.com> <1196384986.2501.141.camel@localhost.localdomain> 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: 2007-11/txt/msg00569.txt.bz2 > From: Michael Snyder > Cc: gdb-patches@sources.redhat.com > Date: Thu, 29 Nov 2007 17:09:46 -0800 > > I haven't followed the discussion closely, but > shouldn't it be up to the GUI to keep such persistant > info? It's nothing to do with gdb, really. It's the > GUI's state. I'm not sure what you are talking about. This discussion mentioned two different aspects of watchpoints: I wanted the watchpoints on automatic variables defined in `main' to not be deleted when the program exits, and Vlad was talking about automatic variables in general (which hits the problem with recursive invocations of the same function). I submit that the former is how GDB should behave, and that the fact it doesn't today is a misfeature, unrelated to the GUI state. To a programmer, automatic variables in `main' are almost indistinguishable from static variables, so watchpoints on both kinds should behave the same.