This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with-DPROTOTYPES
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 04 Apr 2003 22:09:17 +0200
- Subject: Re: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with-DPROTOTYPES
- References: <3E5A8C4F.7020000@nerim.fr>
Hi!
Following Andrew's suggestion and approval, I've committed the attached patch.
(see also http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1096)
2003-04-04 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.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 4 Apr 2003 20:03:15 -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"
}
+ # marker4() is defined at line 46 when compiled with -DPROTOTYPES
+ -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 " {
fail "run until breakpoint set at small function, optimized file"
}