From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1237 invoked by alias); 27 May 2003 14:58:32 -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 31302 invoked from network); 27 May 2003 14:57:37 -0000 Received: from unknown (HELO sccrmhc01.attbi.com) (204.127.202.61) by sources.redhat.com with SMTP; 27 May 2003 14:57:37 -0000 Received: from lucon.org (12-234-88-5.client.attbi.com[12.234.88.5]) by attbi.com (sccrmhc01) with ESMTP id <20030527145737001009m25fe>; Tue, 27 May 2003 14:57:37 +0000 Received: by lucon.org (Postfix, from userid 1000) id D81FE2C683; Tue, 27 May 2003 07:57:36 -0700 (PDT) Date: Tue, 27 May 2003 14:58:00 -0000 From: "H. J. Lu" To: Elena Zannoni Cc: GDB Subject: Re: RFC: DW_TAG_try_block Message-ID: <20030527075736.A22991@lucon.org> References: <20030526124443.A7502@lucon.org> <16083.31335.661805.9131@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <16083.31335.661805.9131@localhost.redhat.com>; from ezannoni@redhat.com on Tue, May 27, 2003 at 10:47:03AM -0400 X-SW-Source: 2003-05/txt/msg00352.txt.bz2 On Tue, May 27, 2003 at 10:47:03AM -0400, Elena Zannoni wrote: > H. J. Lu writes: > > Intel C++ compiler generates DW_TAG_try_block for > > > > try > > { > > ... > > } > > > > Gdb can't print any local variables declared inside the try block. This > > patch seems to work for us. Is that correct? > > > > > > H.J. > > --- > > 2003-05-26 H.J. Lu > > > > * dwarf2read.c (process_die): Handle DW_TAG_try_block. > > > > --- gdb/dwarf2read.c.try 2003-05-26 12:23:22.000000000 -0700 > > +++ gdb/dwarf2read.c 2003-05-26 12:37:08.000000000 -0700 > > @@ -1768,6 +1768,7 @@ process_die (struct die_info *die, struc > > of a function and make GDB `next' properly over inlined functions. */ > > break; > > case DW_TAG_lexical_block: > > + case DW_TAG_try_block: > > read_lexical_block_scope (die, objfile, cu_header); > > break; > > case DW_TAG_class_type: > > > Seems ok, can you address Daniel's concern about the catch block? > I.e. add that as well? http://sources.redhat.com/ml/gdb/2003-05/msg00348.html > How about adding a little test case to the gdb.c++ directory? > I can provide a simple C++ code. But you will need Intel C++ compiler to see the problem. Also the current Intel compiler doesn't support RedHat 9. H.J.