diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-27 14:09:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-27 14:09:52 +0000 |
commit | 6eac95e3755f1eb5afdb0a4b0927c3976067edda (patch) | |
tree | 067dd20ff462cbc4d202801eb893a2f3acb59504 /gdb | |
parent | cf69d71c1de6d5b253e32a9340e54656f64460a1 (diff) | |
download | gdb-6eac95e3755f1eb5afdb0a4b0927c3976067edda.zip gdb-6eac95e3755f1eb5afdb0a4b0927c3976067edda.tar.gz gdb-6eac95e3755f1eb5afdb0a4b0927c3976067edda.tar.bz2 |
* gdb.c++/casts.exp: Fix startup to run also on embedded targets.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/casts.exp | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 66a1eb6..f191638 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.c++/casts.exp b/gdb/testsuite/gdb.c++/casts.exp index 859755f..5b6cabe 100644 --- a/gdb/testsuite/gdb.c++/casts.exp +++ b/gdb/testsuite/gdb.c++/casts.exp @@ -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 |