This is the mail archive of the gdb-prs@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]
Other format: [Raw text]

pending/1096: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with -DPROTOTYPES


>Number:         1096
>Category:       pending
>Synopsis:       [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with -DPROTOTYPES
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Wed Feb 26 04:18:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 This is a multi-part message in MIME format.
 --------------030503030506090503070109
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hi!
 
 In the gdb.base/break.c test, the function marker4() is defined at line 46 when
 the test is compiled with -DPROTOTYPES and at line 51 otherwise.  The break.exp
 test only check for line 51.
 
 This patch adds the missing regexp for marker4 at line 46.
 (tested with make check for m6811-elf; break.exp passes completely)
 
 Can you approve it?
 
 Thanks,
 	Stephane
 
 2003-02-24  Stephane Carrez  <stcarrez at nerim dot fr>
 
 	* gdb.base/break.exp: marker4() is defined at line 46 when compiled
 	with -DPROTOTYPES.
 
 --------------030503030506090503070109
 Content-Type: text/plain;
  name="break.exp.diffs"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="break.exp.diffs"
 
 Index: gdb.base/break.exp
 ===================================================================
 RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.exp,v
 retrieving revision 1.14
 diff -u -p -r1.14 break.exp
 --- gdb.base/break.exp	16 Jan 2003 01:56:15 -0000	1.14
 +++ gdb.base/break.exp	24 Feb 2003 21:13:24 -0000
 @@ -907,11 +907,16 @@ if ![target_info exists use_gdb_stub] {
  # as if it were in the middle of a line rather than at the beginning.
  
  send_gdb "continue\n"
 +# marker4() is defined at line 46 when compiled with -DPROTOTYPES
 +# and at line 51 otherwise.
  gdb_expect {
      -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile:51\[\r\n\]+51\[\t \]+void marker4.*" {
  	pass "run until breakpoint set at small function, optimized file"
      }
      -re "Breakpoint $decimal, $hex in marker4 \\(d=177601976\\) at .*$srcfile:51\[\r\n\]+51\[\t \]+void marker4.*" {
 +	pass "run until breakpoint set at small function, optimized file"
 +    }
 +    -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile:46\[\r\n\]+46\[\t \]+void marker4.*" {
  	pass "run until breakpoint set at small function, optimized file"
      }
      -re ".*$gdb_prompt " {
 
 --------------030503030506090503070109--
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


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