aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-02-21 19:46:48 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-02-21 19:46:48 +0000
commit13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9 (patch)
treeb460eea81f76a8386a5cdda56e8188f222ce577a /gdb/defs.h
parent5b96932ba38475227c261557a886e1dff1948ce6 (diff)
downloadfsf-binutils-gdb-13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9.zip
fsf-binutils-gdb-13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9.tar.gz
fsf-binutils-gdb-13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index f5f8e35..d983dfc 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);