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]

Re: testsuite/1096: [RFA]: Fix testsuite/gdb.base/break.exp whentest compiled with -DPROTOTYPES


The following reply was made to PR testsuite/1096; it has been noted by GNATS.

From: Stephane Carrez <stcarrez at nerim dot fr>
To: gdb-patches at sources dot redhat dot com, gdb-prs at sources dot redhat dot com,
	stcarrez at nerim dot fr, gdb-gnats at sources dot redhat dot com
Cc:  
Subject: Re: testsuite/1096: [RFA]: Fix testsuite/gdb.base/break.exp when
 test compiled with -DPROTOTYPES
Date: Sat, 05 Apr 2003 13:43:28 +0200

 This is a multi-part message in MIME format.
 --------------060606070603080804000202
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hi!
 
 This new patch takes into account Daniel and Michael remarks.
 (verified by running gdb testsuite on m6811-elf)
 
 Ok to commit?
 
 	Stephane
 
 2003-04-05  Stephane Carrez  <stcarrez at nerim dot fr>
 
 	* gdb.base/break.exp: marker4() is defined at line 46 when compiled
 	with -DPROTOTYPES.
 
 --------------060606070603080804000202
 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.16
 diff -u -p -r1.16 break.exp
 --- gdb.base/break.exp	5 Apr 2003 10:40:59 -0000	1.16
 +++ gdb.base/break.exp	5 Apr 2003 10:52:56 -0000
 @@ -914,6 +914,10 @@ gdb_expect {
      -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.*" {
 +        # marker4() is defined at line 46 when compiled with -DPROTOTYPES
 +	pass "run until breakpoint set at small function, optimized file (line 46)"
 +    }
      -re ".*$gdb_prompt " {
  	fail "run until breakpoint set at small function, optimized file"
      }
 
 --------------060606070603080804000202--
 


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