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: PATCH: tests for MI commands


On Mon, Aug 01, 2005 at 11:33:41AM +1200, Nick Roberts wrote:
>  > Second, I get a value of 0 here, but the test still fails. 
>  > func_ptr_struct and func_ptr_ptr aren't initialized either.  Chasing
>  > uninitialized members is going to leave the tests script a bit of a
>  > mess.
>  > 
>  > Initializing the whole structure proved to be a bit of a pain - these
>  > tests are ridiculously tricky to edit.  But here it is.  Tested on
>  > i686-pc-linux-gnu and committed.  I hope this will be more useful if we
>  > add any additional value-related tests.
> 
> I find the number of backslashes needed confusing (because of the read syntax
> for strings?).  Your changes seem concise.  I'll test these too.
>  
> Thanks again.

No problem.  About the backslashes:

If you say "\\\\" in TCL, then the parser will reduce it to the literal
string <\\>.  Then the regular expression parser will collapse that
down to a pattern which matches <\>.  {\\} is the same as "\\\\"
because backslashes aren't special to TCL inside of braces.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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