This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] gdb.c++/classes.exp
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: Re: [PATCH] gdb.c++/classes.exp
- From: Jimmy Guo <guo at cup dot hp dot com>
- Date: Wed, 2 Aug 2000 15:10:52 -0700 (PDT)
FYI I've commited this.
- Jimmy
On Fri, 28 Jul 2000, Jimmy Guo wrote:
>This patch makes sure that the expect buffer does not contain
>"$gdb_prompt " from the 'finish' command that can be picked up by the
>next test point.
>
>Fri Jul 28 17:31:38 Jimmy Guo <guo@cup.hp.com>
>
> * gdb.c++/classes.exp: Use gdb_test instead of send_gdb to
> 'finish', otherwise uncaptured gdb_prompt would potentially
> throw remaining test points out of sync.
>
>Index: gdb.c++/classes.exp
>/usr/local/bin/diff -c -L gdb.c++/classes.exp gdb.c++/classes.exp@@/GDB_2000_07_24 gdb.c++/classes.exp
>*** gdb.c++/classes.exp
>--- gdb.c++/classes.exp Fri Jul 28 17:30:32 2000
>***************
>*** 835,841 ****
>
> gdb_breakpoint enums2
> if [ gdb_continue enums2 ]==0 then {
>! send_gdb "finish\n"
> test_enums
> }
>
>--- 835,841 ----
>
> gdb_breakpoint enums2
> if [ gdb_continue enums2 ]==0 then {
>! gdb_test "finish" "" ""
> test_enums
> }