[patch 4/5] Test cases

Pedro Alves pedro@codesourcery.com
Thu Nov 17 14:54:00 GMT 2011


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



More information about the Gdb-patches mailing list