* gdb.c++/casts.exp: Fix startup to run also on embedded targets.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 27 Mar 2003 14:09:52 +0000 (14:09 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 27 Mar 2003 14:09:52 +0000 (14:09 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.c++/casts.exp

index 66a1eb6f775d029dfa2e5cd6904bf572968e90d0..f1916380b67ce5a8c9fd02a9879eb847ec011105 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-27  Corinna Vinschen  <vinschen@redhat.com>
+
+       * gdb.c++/casts.exp: Fix startup to run also on embedded targets.
+
 2003-03-26  Michael Chastain  <mec@shout.net>
 
        * gdb.base/ptype.exp: Actually use some typedef'd types.
index 859755f66b7c00a5836c166c0814c3e0ef6b468b..5b6cabe34faf27e4b46230abd73214bacf38a05e 100644 (file)
@@ -55,11 +55,16 @@ gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
 
+if ![runto_main] then {
+    perror "couldn't run to breakpoint"
+    continue
+}
+
 gdb_test "break [gdb_get_line_number "casts.exp: 1"]" \
     "Breakpoint.*at.* file .*" \
     ""
 
-gdb_test "run" "Breakpoint .* at .*casts.cc.*" ""
+gdb_test "continue" "Breakpoint .* at .*casts.cc.*" ""
 
 # Casting a pointer to a base class to a pointer to a derived class
 # should yield the entire derived class.  Until August 2002, GDB got
This page took 0.030531 seconds and 4 git commands to generate.