diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2006-02-21 19:46:48 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2006-02-21 19:46:48 +0000 |
commit | ecd6911b13179d49e8ddd56f393f8775047d3251 (patch) | |
tree | 80515e223e15c1be89e6ae9d1ee24a43eb92edc7 /gdb/defs.h | |
parent | 73cc1822bf5f52f73c2ed211c14e9af19915a3b5 (diff) | |
download | gdb-ecd6911b13179d49e8ddd56f393f8775047d3251.tar.gz |
2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
* defs.h (directory_switch): Add prototype.
* main.c (captured_main): Use directory_switch() instead of
directory_command() to add directories from the -d switch.
* source.c (directory_switch): New function.
(add_path): Use buildargv() to parse spaces in filenames properly.
Strip multiple trailing '/' rather than just one.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h index f5f8e354849..d983dfc195e 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -611,6 +611,8 @@ extern void add_path (char *, char **, int); extern void directory_command (char *, int); +extern void directory_switch (char *, int); + extern char *source_path; extern void init_source_path (void); |