From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16175 invoked by alias); 27 May 2003 15:19:11 -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 5556 invoked from network); 27 May 2003 15:13:35 -0000 Received: from unknown (HELO rwcrmhc53.attbi.com) (204.127.198.39) by sources.redhat.com with SMTP; 27 May 2003 15:13:35 -0000 Received: from lucon.org (12-234-88-5.client.attbi.com[12.234.88.5]) by attbi.com (rwcrmhc53) with ESMTP id <2003052715133405300ogmn5e>; Tue, 27 May 2003 15:13:34 +0000 Received: by lucon.org (Postfix, from userid 1000) id 38E712C683; Tue, 27 May 2003 08:13:34 -0700 (PDT) Date: Tue, 27 May 2003 15:19:00 -0000 From: "H. J. Lu" To: Elena Zannoni Cc: GDB Subject: Re: RFC: DW_TAG_try_block Message-ID: <20030527081334.A23209@lucon.org> References: <20030526124443.A7502@lucon.org> <16083.31335.661805.9131@localhost.redhat.com> <20030527075736.A22991@lucon.org> <16083.32844.434477.515378@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.32844.434477.515378@localhost.redhat.com>; from ezannoni@redhat.com on Tue, May 27, 2003 at 11:12:12AM -0400 X-SW-Source: 2003-05/txt/msg00355.txt.bz2 On Tue, May 27, 2003 at 11:12:12AM -0400, Elena Zannoni wrote: > > > 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 > When it is compiled by ecc 7.1, # ecc -g main.cc -o main The current gdb won't see ni nor n when break points are set in try and catch blocks. H.J. ----- #include #include using namespace std; int main(int argc, char* argv[]) { try { int ni = 2; if (ni) cout << "scatt: " << ni << endl; throw "Good: "; exit(EXIT_SUCCESS); } catch(runtime_error& e) { cerr << "scatt: runtime error occured.\n"; exit(EXIT_FAILURE); } catch (const char *p) { int n; n = 3; cerr << p << n << endl; exit(EXIT_FAILURE); } }