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: tolerate one-line functions



2000-04-26  Jim Blandy  <jimb@redhat.com>

	* gdb.base/break.exp ("run until breakpoint set at small function,
	optimized file"): XFAIL if the breakpoint hit messages include an
	address.  GCC's Dwarf 2 line info doesn't help us distinguish the
	prologue from the real source code, so GDB can't tell we're really
	just sitting after the prologue.

Index: break.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/break.exp,v
retrieving revision 1.52
diff -c -c -r1.52 break.exp
*** gdb/testsuite/gdb.base/break.exp	2000/03/27 07:37:31	1.52
--- gdb/testsuite/gdb.base/break.exp	2000/04/27 17:03:43
***************
*** 870,877 ****
  #
  # run until the breakpoint at a small function
  #
! gdb_test continue "Continuing\\..*Breakpoint \[0-9\]+, marker4 \\(d=177601976\\) at .*$srcfile:51.*51\[\t \]+void.*marker4.*" \
! 			"run until breakpoint set at small function, optimized file"
  
  
  # Reset the default arguments for VxWorks
--- 870,890 ----
  #
  # run until the breakpoint at a small function
  #
! send_gdb "continue\n"
! gdb_expect {
!     -re "Continuing\\..*Breakpoint \[0-9\]+, marker4 \\(d=177601976\\) at .*$srcfile:51.*51\[\t \]+void.*marker4.*" {
! 	pass "run until breakpoint set at small function, optimized file"
!     }
!     -re "Continuing\\..*Breakpoint \[0-9\]+, $hex in marker4 \\(d=177601976\\) at .*$srcfile:51.*51\[\t \]+void.*marker4.*" {
! 	xfail "run until breakpoint set at small function, optimized file"
!     }
!     -re "$gdb_prompt $" {
! 	fail "run until breakpoint set at small function, optimized file"
!     }
!     timeout {
! 	fail "(timeout) run until breakpoint set at small function, optimized file"
!     }
! }
  
  
  # Reset the default arguments for VxWorks

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