This is the mail archive of the gdb-patches@sourceware.org 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: [patch 4/5] Test cases


On Thursday 17 November 2011 14:09:13, Yao Qi wrote:
> On 11/17/2011 08:07 PM, Pedro Alves wrote:
> > 
> > Note that "$gdb_prompt $" match takes precedence over
> > gdb_test_multiple's internal "Ending remote debugging.*$gdb_prompt $"
> > match.
> 
> Is this precedence determined by the order of appending ${code} in proc
> gdb_test_multiple?

Yes.  You end up with the equivalent of:

   gdb_expect $tmt {
     -re "$gdb_prompt $" {
     }
     -re "Ending remote debugging.*$gdb_prompt $" {
   	 }
   }

And the first regex that matches (top to bottom order) wins.

> > Want to try that?
> 
> Sure, they work.  Updated patch as you suggested.

Okay.

-- 
Pedro Alves


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