[RFC] fullname attribute for GDB/MI stack frames

Bob Rossi bob@brasko.net
Sun May 1 18:34:00 GMT 2005


> > Like Dennis noted, it could be possible that the fullname might not
> > start with a "/". I originally posted the patch with the fullname
> > starting with a "/", and since then, there hasn't been any complaints.
> > If there is a better regex that ensures that the fullname is absolute
> > I'd be happy to change the mi-file.exp test to it.
> 
> The proper regexp should be something like
> 
>    \([A-z]:\)?[/\\].*basics.c
> 
> This assumes that \(...\) is the proper syntax for grouping (I don't
> know much about the regexp syntax expected by Expect).
> 
> (The uppercase A but lowercase z in the above are intentional: that's
> because letters between Z and a can also be drive letters, amazingly
> enough.)

OK, I don't know why no one has ever posted to this list with testsuite
failures on the mi-file.exp testcase. Maybe no one runs the mi testsuite 
on windows?

Either way, I'm going to submit a patch later today which will add a
variable to mi-support.exp similar to mi_gdb_prompt. The variable will
describe the syntax of a fullname field. It will abstract the details 
and complications from new users trying to write testcase's.

I'll try to find time to make this quick change tonight. If people don't
like this idea, let me know.

Thanks,
Bob Rossi



More information about the Gdb-patches mailing list