[RFC] fullname attribute for GDB/MI stack frames
Bob Rossi
bob@brasko.net
Thu May 5 23:53:00 GMT 2005
On Thu, May 05, 2005 at 03:17:54PM -0400, Christopher Faylor wrote:
> On Thu, May 05, 2005 at 01:19:10PM -0400, Bob Rossi wrote:
> >> The proper regexp should be something like
> >>
> >> \([A-z]:\)?[/\\].*basics.c
> >
> >I sent this question to Eli, but thought others might be interested.
> >The regex above woks on /.* and d:\.* and \\.* and \.* but it doesn't
> >work on d:.*. I can't see a simple way to add that last case. Does
> >anyone else?
> >
> >This is the only way I could solve the last case,
> > \([A-z]:[^\].*\)|\([A-z]:\)?[/\\].*basics.c
>
> Maybe it's a minor nit but \\.* is not strictly correct for a UNC.
> With, \\X\y, the X is not optional. So there has to be at least
> three backslashes in a UNC path, e.g, \\\\[^\\][^\\]*\..*
Thanks, I'll make sure to incorporate this.
Bob Rossi
More information about the Gdb-patches
mailing list