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: [PATCH] Use search path for scripts


> Date: Wed, 16 Nov 2005 17:06:32 +0000
> From: Andrew STUBBS <andrew.stubbs@st.com>
> 
> The search strategy employed is the one we have found most useful. If 
> the path contains '/' then search relative to current directory first, 
> otherwise search the path first.

How about trying in the current directory if the file name does not
have any slash characters?  That sounds like the least surprising
behavior, and also keeps backward compatibility.

> doc/
> 	* gdb.texinfo (Choosing files): Mention that -directory is used
> 	for script files.
> 	(Specifying source directories): Likewise.
> 	(Command files): Explain how script files are found.

This part is approved (but if we decide to change the behavior, please
post a modified patch).


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