* [PATCH] catch commands in cpp_variable.test
@ 2001-10-15 22:55 Keith Seitz
2001-12-20 10:29 ` Keith Seitz
0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2001-10-15 22:55 UTC (permalink / raw)
To: Insight Maling List
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] catch commands in cpp_variable.test
2001-10-15 22:55 [PATCH] catch commands in cpp_variable.test Keith Seitz
@ 2001-12-20 10:29 ` Keith Seitz
0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2001-12-20 10:29 UTC (permalink / raw)
To: Insight Maling List
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-20 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-15 22:55 [PATCH] catch commands in cpp_variable.test Keith Seitz
2001-12-20 10:29 ` Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).