This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add testcase for locals identified with FUNCTION::VAR syntax.
Hi Doug,
> > +# Some convenient regular expressions...
> > +set num "\[0-9\]+"
> Delete, use $decimal.
>
> > +set addr "0x\[0-9a-zA-Z\]+"
>
> This could be replaced with $hex, or do "set addr $hex". Either is
> fine with me.
Do you know where these are defined? And are there any other such
useful globals that we can use? I need to document them in the
testing cookbook, because I keep looking for them, and then
eventually redefine them over and over again...
Thanks!
> I notice scope.exp has similar tests.
> Would it make sense to move this there?
Personally, I think it's fine to have a small self-contained
testcase that deals mostly with scoping vs recursion. I actually
like it better that way, but I know people may prefer it the other
way. My opinion for liking smaller testcases is that it's usually
easier to reproduce the problem: You don't have to sort through
a lot of unrelated stuff that happens before the problem occurs.
--
Joel