This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Use substitute-path for filename portion too
On Thu, Feb 07, 2008 at 09:56:58AM -0800, Joel Brobecker wrote:
> > +
> > + if (IS_ABSOLUTE_PATH (filename))
> > {
> > - /* If dirname is NULL, chances are the path is embedded in
> > - the filename. Try the source path substitution on it. */
> > + /* If filename is absolute path, try the source path
> > + substitution on it. */
>
> Do we want to restrict this to filenames that are absolute paths?
> Imagine the filename was codesourcery/bar/bar.h and the rewrite was
> s/codesourcery/adacore/, do we want to attempt the rewrite then?
> I suppose we should wait to see a real example of such a situation
> before trying to support it...
Are such rules supported? I couldn't work out from the manual
what FROM and TO had to be.
--
Daniel Jacobowitz
CodeSourcery