This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

[PATCH] gdb.c++/classes.exp


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
      }
  


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