This is the mail archive of the gdb-patches@sourceware.cygnus.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]

RFA: test suite fixes



I'd like to commit this to devo.  Any comments?

1999-12-21  Jim Blandy  <jimb@cygnus.com>

	* gdb.base/break.exp ("breakpoint line number"): Make sure the
	default source file is set properly before running this test.

	* gdb.base/break.exp ("stub continue"): Fix pattern.

Index: gdb/testsuite/gdb.base/break.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/break.exp,v
retrieving revision 1.48
diff -c -c -b -F'^(' -r1.48 break.exp
*** gdb/testsuite/gdb.base/break.exp	1999/10/02 00:24:35	1.48
--- gdb/testsuite/gdb.base/break.exp	1999/12/21 20:22:02
***************
*** 92,97 ****
--- 92,106 ----
  #
  # test break at line number
  #
+ # Note that the default source file is the last one whose source text
+ # was printed.  For native debugging, before we've executed the
+ # program, this is the file containing main, but for remote debugging,
+ # it's wherever the processor was stopped when we connected to the
+ # board.  So, to be sure, we do a list command.
+ #
+ gdb_test "list main" \
+     ".*main \\(argc, argv, envp\\).*" \
+     "use `list' to establish default source file"
  gdb_test "break 79" \
      "Breakpoint.*at.* file .*$srcfile, line 79\\." \
      "breakpoint line number"
***************
*** 166,172 ****
    }
  } else {
      if ![target_info exists gdb_stub] {
! 	gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:75.*75\[\t \]+if .argc.*\{" "stub continue"
      }
  }
  
--- 175,181 ----
    }
  } else {
      if ![target_info exists gdb_stub] {
! 	gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, main \\(argc=.*, argv=.*, envp=.*\\) at .*$srcfile:75.*75\[\t \]+if .argc.*\{.*" "stub continue"
      }
  }
  

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