From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10657 invoked by alias); 26 May 2003 20:16:29 -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 32037 invoked from network); 26 May 2003 20:11:07 -0000 Received: from unknown (HELO sccrmhc03.attbi.com) (204.127.202.63) by sources.redhat.com with SMTP; 26 May 2003 20:11:07 -0000 Received: from lucon.org (12-234-88-5.client.attbi.com[12.234.88.5]) by attbi.com (sccrmhc03) with ESMTP id <20030526201107003006fi24e>; Mon, 26 May 2003 20:11:07 +0000 Received: by lucon.org (Postfix, from userid 1000) id 1094D2C683; Mon, 26 May 2003 13:11:07 -0700 (PDT) Date: Mon, 26 May 2003 20:16:00 -0000 From: "H. J. Lu" To: GDB Subject: Re: RFC: DW_TAG_try_block Message-ID: <20030526131107.A7892@lucon.org> References: <20030526124443.A7502@lucon.org> <20030526195646.GA26902@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030526195646.GA26902@nevyn.them.org>; from drow@mvista.com on Mon, May 26, 2003 at 03:56:46PM -0400 X-SW-Source: 2003-05/txt/msg00348.txt.bz2 On Mon, May 26, 2003 at 03:56:46PM -0400, Daniel Jacobowitz wrote: > On Mon, May 26, 2003 at 12:44:43PM -0700, H. J. Lu wrote: > > 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? > > I believe that this is correct, and that (at least for now) the same > thing should be done for DW_TAG_catch_block. There's a PR for this > issue. > You are right. We do use DW_TAG_catch_block. This also works for the catch block. H.J. --- 2003-05-26 H.J. Lu * dwarf2read.c (process_die): Handle DW_TAG_try_block and DW_TAG_catch_block. --- gdb/dwarf2read.c.try 2003-05-26 12:23:22.000000000 -0700 +++ gdb/dwarf2read.c 2003-05-26 13:07:47.000000000 -0700 @@ -1768,6 +1768,8 @@ 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: + case DW_TAG_catch_block: read_lexical_block_scope (die, objfile, cu_header); break; case DW_TAG_class_type: