This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Use search path for scripts
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Andrew STUBBS <andrew dot stubbs at st dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 16 Nov 2005 22:19:14 +0200
- Subject: Re: [PATCH] Use search path for scripts
- References: <437B6718.7070300@st.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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).