This is the mail archive of the gdb-patches@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: [RFA]: Fix testsuite/gdb.base/break.exp when test compiled with-DPROTOTYPES


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...

Stephane


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