From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6223 invoked by alias); 8 Jan 2003 08:09:21 -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 5990 invoked from network); 8 Jan 2003 08:08:03 -0000 Received: from unknown (HELO gateway.sysen) (212.118.92.51) by 209.249.29.67 with SMTP; 8 Jan 2003 08:08:03 -0000 Received: from netscape.net (zv-23.sysen [10.0.30.23]) by gateway.sysen (8.9.3/8.9.3/12.06.1999) with ESMTP id JAA05468 for ; Wed, 8 Jan 2003 09:07:50 +0100 Message-ID: <3E1BDC6D.3020604@netscape.net> Date: Wed, 08 Jan 2003 08:09:00 -0000 From: Iztok Kobal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903 X-Accept-Language: sl, en-us MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: GDB not showing local-to-block variables ? X-Enigmail-Version: 0.63.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00074.txt.bz2 System: i686, SuSE 8.1, kernel 2.4.19, gcc-3.2, gdb-5.2.1 code is configured to use exceptions and compiled using the --enable-debug. When invoking the gdb, it does not show the variables which are local to the block within some function: void function (some argument) { try { some variable; // which is not displayed by the debugger ..... ...... } catch (...) { .... } } When trying to display this variable as it was the watch variable, the debugger reports that there is no such symbol in the current stack frame. Is this the debugger problem or there is an option to be used at compile time to get this info ?