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: Daniel Jacobowitz <drow at mvista dot com>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: Michael Elizabeth Chastain <mec at shout dot net>,gdb-patches at sources dot redhat dot com
- Date: Fri, 4 Apr 2003 17:28:39 -0500
- Subject: Re: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with -DPROTOTYPES
- References: <200304042041.h34Kf5627351@duracef.shout.net> <3E8DF9B9.4070709@nerim.fr>
On Fri, Apr 04, 2003 at 11:31:37PM +0200, Stephane Carrez wrote:
> Hi!
>
> Michael Elizabeth Chastain wrote:
> >I could be wrong, but I don't think you can put comments in the
> >middle of a gdb_expect block like this.
> >
> > + # 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"
> > + }
> >
> >I think you have to do this:
> >
> > -re "Breakpoint ... void marker.*" {
> > # marker4() is defined at line 46 when compiled with -DPROTOTYPES
> > pass "run until breakpoint set at small function, optimized file"
> > }
> >
> >Michael C
> >
> >
> I wasn't sure too..
>
> But I verified that it worked before the commit...
It may have worked, but Michael is right. It will parse the comment as
a series of patterns and code blocks.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer