This is the mail archive of the gdb-patches@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: [RFA] New substitute-path commands


On Wed, 2006-07-05 at 21:47 -0700, Joel Brobecker wrote:
> > Given your later explanation that you only support one entry, I find
> > "substitute-path add" a bit confusing.  Shall we take a moment to think
> > about a general interface for lists?
> > 
> > If we had one, we could use it for other variables, and we could access
> > this using something like -gdb-set.
> 
> Would you mind making a design proposal? I'm not sure to understand
> what you exactly you are thinking about. I think I understand the fact
> that you would like to have more than one rule because "add" doesn't
> suggest "replace", but I am not sure I get the rest :-/.
> 
> Thanks,

How about something like this:

	set substitute-path [<path>]
		If this variable is set, <path> is a colon-separated
		list of <from>,<to> pairs.  When a full path that
		has been encoded in the debug information is processed,
		each <from>,<to> pair is applied by searching the full
		path for the <from> string and replacing it by the <to>
		string.  If <path> is not used, then the substitute-path
		variable is un-set.

	show substitute-path
		Display the current list of <from>,<to> pairs.



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