This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: testsuite/1096: [RFA]: Fix testsuite/gdb.base/break.exp whentest compiled with -DPROTOTYPES
- 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
- Date: Sat, 05 Apr 2003 13:43:28 +0200
- Subject: Re: testsuite/1096: [RFA]: Fix testsuite/gdb.base/break.exp whentest compiled with -DPROTOTYPES
- References: <20030405105120.28085.qmail@sources.redhat.com>
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.
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"
}