This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] fullname attribute for GDB/MI stack frames
- From: Daniel Jacobowitz <drow at false dot org>
- To: Eli Zaretskii <eliz at gnu dot org>, Dennis Brueni <dbrueni at slickedit dot com>,gdb-patches at sources dot redhat dot com
- Date: Sun, 1 May 2005 20:58:32 -0400
- Subject: Re: [RFC] fullname attribute for GDB/MI stack frames
- References: <ECCC6E9907B4CD4A83260A191A91F20E22C6D2@wampa.office.slickedit.com> <20050430191755.GF7009@nevyn.them.org> <20050501021945.GA19962@white> <01c54e7a$Blat.v2.4$e31afae0@zahav.net.il> <20050502005415.GA21588@white>
On Sun, May 01, 2005 at 08:54:15PM -0400, Bob Rossi wrote:
> Eli, is this correct? Is a proper fullname in windows \abc? Should the
> regex move the \\ into the first grouping with the drive letter?
>
> \([A-z]:\\\)?/.*basics.c
>
> Please let me know.
If so, you want to strip the extra slash.
([A-Za-z]:\\|/).*[\\/]$basename
Additional backslash doubling and brace escaping is necessary with TCL
"" quoting, and this is not strictly correct in that it does not handle
files directly under a root path.
--
Daniel Jacobowitz
CodeSourcery, LLC