From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28882 invoked by alias); 6 Sep 2002 13:43:50 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28874 invoked from network); 6 Sep 2002 13:43:49 -0000 Received: from unknown (HELO max.phys.uu.nl) (131.211.32.73) by sources.redhat.com with SMTP; 6 Sep 2002 13:43:49 -0000 Received: from [131.211.32.140] (hst32140.phys.uu.nl [131.211.32.140]) by max.phys.uu.nl (8.9.3/8.9.3/hjm) with ESMTP id PAA182387 for ; Fri, 6 Sep 2002 15:43:48 +0200 (CEST) X-Sender: vndijk@mail.phys.uu.nl Message-Id: In-Reply-To: <20020906130835.GA6986@nevyn.them.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 06 Sep 2002 06:43:00 -0000 To: gdb@sources.redhat.com From: Arjan van Dijk Subject: Re: problem setting displays X-SW-Source: 2002-09/txt/msg00030.txt.bz2 >That's not how you do it. You run until you are in MAIN__ and "display >x". Does that work? No. The session that I showed only halted in MAIN__, so your condition was satisfied and none of the displays that I tried to set were accepted. Moreover, when I asked gdb to display MAIN__::i display MAIN__::x before I said run then all went ok. I had my watches every time gdb halted. As you may have seen, no new watches were accepted once I commanded gdb to run. On 5.2.1 I could get the watches after I reloaded the executable. On the Linux box with gdb 5.0.x this did not work. How can I have the value of a variable printed just once when program execution halts? This instead of using "display". Maybe I could use such a command. Would mean that I have to call all variables that I want to watch every time the program halts, but until so far the 'display' command does not seem to work. Arjan Arjan van Dijk Institute for Marine and Atmospheric Research Utrecht Faculty of Physics and Astronomy Utrecht University Princetonplein 5 NL - 3584 CC Utrecht The Netherlands phone: +31 30 2532815 fax: +31 30 2543163 e-mail: mailto:A.vanDijk@phys.uu.nl homepage: http://www.phys.uu.nl/~vndijk