This is the mail archive of the gdb@sourceware.org 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: Should "dir" override the full path encoded in debug info?


> > Please correct me if I'm wrong, but wouldn't something like 
> > substitute-path be more correct. I mean, this doesn't relate to a dir or
> > a filename does it? I may not completly understand what the new
> > functions input/output is though.
> 
> Works for me.

substitute-path works for me too. (and I verified, no collision with
other commands).

Right now, the interface I have in mind is the following.

        (gdb) substitute-path from to

                Sets the substitution rule using "from" and "to".

        (gdb) substitute-path

                Delete the substitution rule

It just occured to me: Should add a way to show the current substitution
pattern? The "show" command prefix doesn't lend itself too well because
we have two arguments. Or perhaps is it ok to define our own processing
for the "show substitute-path" command:

        (gdb) show substitute-path
        Source paths are modified by substituting "from" with "to".

Thanks,
-- 
Joel


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