From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5130 invoked by alias); 26 May 2003 19:46:15 -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 2364 invoked from network); 26 May 2003 19:44:46 -0000 Received: from unknown (HELO rwcrmhc51.attbi.com) (204.127.198.38) by sources.redhat.com with SMTP; 26 May 2003 19:44:46 -0000 Received: from lucon.org (12-234-88-5.client.attbi.com[12.234.88.5]) by attbi.com (rwcrmhc51) with ESMTP id <2003052619444605100q55i7e>; Mon, 26 May 2003 19:44:46 +0000 Received: by lucon.org (Postfix, from userid 1000) id E6AE22C683; Mon, 26 May 2003 12:44:43 -0700 (PDT) Date: Mon, 26 May 2003 19:46:00 -0000 From: "H. J. Lu" To: GDB Subject: RFC: DW_TAG_try_block Message-ID: <20030526124443.A7502@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2003-05/txt/msg00346.txt.bz2 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: