This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] fullname attribute for GDB/MI stack frames


> Date: Sat, 30 Apr 2005 22:19:45 -0400
> From: Bob Rossi <bob@brasko.net>
> 
> On Sat, Apr 30, 2005 at 03:17:55PM -0400, Daniel Jacobowitz wrote:
> > On Fri, Apr 01, 2005 at 02:13:33PM -0500, Dennis Brueni wrote:
> > > > Again, for the fullname regex, I would recommend using the 
> > > > same regex used in mi-file.exp. This would be like 
> > > > fullname="/.*basics.c" This forces the regex to ensure that 
> > > > the path is absolute, which the check you have does not.
> > 
> > Will GDB always output absolute paths that start with "/"?  What about
> > non-Cygwin Windows for example?  DJGPP?

To answer Daniel's question: no, absolute file names on DOS/Windows
systems do not necessarily begin with a slash.

> 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.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]