From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4840 invoked by alias); 1 Sep 2005 17:10:57 -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 4829 invoked by uid 22791); 1 Sep 2005 17:10:53 -0000 Received: from pluton.ispras.ru (HELO pluton.ispras.ru) (83.149.199.253) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 01 Sep 2005 17:10:53 +0000 Received: (qmail 84715 invoked from network); 1 Sep 2005 17:05:15 -0000 Received: from unknown (HELO truba.ispras.ru) (83.149.198.41) by pluton.ispras.ru with SMTP; 1 Sep 2005 17:05:15 -0000 Received: from truba.ispras.ru (root@localhost) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j81HAlR7017851 for ; Thu, 1 Sep 2005 21:10:47 +0400 Received: from ispserv.ispras.ru (ispserv [83.149.198.72]) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j81HAlCD017845 for ; Thu, 1 Sep 2005 21:10:47 +0400 Received: from ispserv.ispras.ru (localhost [127.0.0.1]) by ispserv.ispras.ru (8.12.8/8.12.8) with ESMTP id j81HAm63003944 for ; Thu, 1 Sep 2005 21:10:48 +0400 Received: from localhost (kostik@localhost) by ispserv.ispras.ru (8.12.8/8.12.8/Submit) with ESMTP id j81HAmA6003940 for ; Thu, 1 Sep 2005 21:10:48 +0400 Date: Thu, 01 Sep 2005 17:10:00 -0000 From: Konstantin Karganov To: gdb@sources.redhat.com Subject: Auto variables display Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.3/RELEASE, bases: 01092005 #137790, status: clean X-SW-Source: 2005-09/txt/msg00002.txt.bz2 Hello, All. In MS Visual Studio debugger there is a very convenient feature - "Auto" watch window tab, which displays the variables, referenced at the current program statement. I.e. when you step across "i=j;" it displays i and j, when you step across "x=f(a+b,*c)" displays a,b and c, etc. This allows to see automatically just the values that affect current step execution and see the error when and where it happens. The question is: does GDB support something like this and also are there the debug info formats that provide the mapping of the source lines (or code addresses) to the set of variables, references at the point? TIA, Konstantin.