This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]