PATCH: tests for MI commands
Daniel Jacobowitz
drow@false.org
Mon Aug 1 01:55:00 GMT 2005
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
More information about the Gdb-patches
mailing list