This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] catch commands in cpp_variable.test
- From: Keith Seitz <keiths at redhat dot com>
- To: Insight Maling List <insight at sources dot redhat dot com>
- Date: Thu, 20 Dec 2001 10:28:12 -0800 (PST)
- Subject: [PATCH] catch commands in cpp_variable.test
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 <keiths@redhat.com>
* 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"