From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20792 invoked by alias); 27 May 2003 15:06:42 -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 20745 invoked from network); 27 May 2003 15:06:41 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 27 May 2003 15:06:41 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h4RF6fH01950 for ; Tue, 27 May 2003 11:06:41 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4RF6fI13545 for ; Tue, 27 May 2003 11:06:41 -0400 Received: from localhost.redhat.com (IDENT:1Ff7QEGshwBVqwwrLFyEdQks+LlnMqw7@tooth.toronto.redhat.com [172.16.14.29]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4RF6eo08691; Tue, 27 May 2003 11:06:40 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id 96AD72C43F; Tue, 27 May 2003 11:12:12 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16083.32844.434477.515378@localhost.redhat.com> Date: Tue, 27 May 2003 15:06:00 -0000 To: "H. J. Lu" Cc: Elena Zannoni , GDB Subject: Re: RFC: DW_TAG_try_block In-Reply-To: <20030527075736.A22991@lucon.org> References: <20030526124443.A7502@lucon.org> <16083.31335.661805.9131@localhost.redhat.com> <20030527075736.A22991@lucon.org> X-SW-Source: 2003-05/txt/msg00354.txt.bz2 H. J. Lu writes: > 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 > oh, ok then. > > 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. > Hmm, maybe just post the example code then. elena > > H.J.