From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12880 invoked by alias); 20 Dec 2001 18:29:32 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 11656 invoked from network); 20 Dec 2001 18:28:13 -0000 X-Authentication-Warning: makita.cygnus.com: keiths owned process doing -bs Date: Mon, 15 Oct 2001 22:55:00 -0000 From: Keith Seitz X-X-Sender: To: Insight Maling List Subject: [PATCH] catch commands in cpp_variable.test Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2001-q4/txt/msg00127.txt.bz2 Hi, libstdc++ is now largely being built as a shared library. If the library cannot be found, gdb cannot run executables. This patch fixes cpp_variable.test so that it can complete in this case. Until now, it just hangs! Keith ChangeLog 2001-12-20 Keith Seitz * cpp_variable.test: Catch non-test calls in case we could not run. Patch Index: cpp_variable.test =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.gdbtk/cpp_variable.test,v retrieving revision 1.5 diff -u -p -r1.5 cpp_variable.test --- cpp_variable.test 2001/10/08 21:34:04 1.5 +++ cpp_variable.test 2001/12/20 18:18:44 @@ -185,7 +185,8 @@ gdbtk_test cpp_variable-1.6 {format of v $var(v) format } {natural} -set value [$var(v) value] +set value {} +catch {$var(v) value} value # Step over "V *v = new V;" gdb_cmd "next" From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Seitz To: Insight Maling List Subject: [PATCH] catch commands in cpp_variable.test Date: Thu, 20 Dec 2001 10:29:00 -0000 Message-ID: X-SW-Source: 2001-q4/msg00428.html Message-ID: <20011220102900.IZ4xhQft-9a8GhBp4O8Ck7xNNyZ70VrKXwhQ8Nfl88o@z> Hi, libstdc++ is now largely being built as a shared library. If the library cannot be found, gdb cannot run executables. This patch fixes cpp_variable.test so that it can complete in this case. Until now, it just hangs! Keith ChangeLog 2001-12-20 Keith Seitz * cpp_variable.test: Catch non-test calls in case we could not run. Patch Index: cpp_variable.test =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.gdbtk/cpp_variable.test,v retrieving revision 1.5 diff -u -p -r1.5 cpp_variable.test --- cpp_variable.test 2001/10/08 21:34:04 1.5 +++ cpp_variable.test 2001/12/20 18:18:44 @@ -185,7 +185,8 @@ gdbtk_test cpp_variable-1.6 {format of v $var(v) format } {natural} -set value [$var(v) value] +set value {} +catch {$var(v) value} value # Step over "V *v = new V;" gdb_cmd "next"