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 | 13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9 (patch) | |
tree | b460eea81f76a8386a5cdda56e8188f222ce577a /gdb/main.c | |
parent | 5b96932ba38475227c261557a886e1dff1948ce6 (diff) | |
download | gdb-13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9.zip gdb-13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9.tar.gz 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/main.c')
-rw-r--r-- | gdb/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -667,7 +667,7 @@ extern int gdbtk_test (char *); } for (i = 0; i < ndir; i++) - catch_command_errors (directory_command, dirarg[i], 0, RETURN_MASK_ALL); + catch_command_errors (directory_switch, dirarg[i], 0, RETURN_MASK_ALL); xfree (dirarg); if (execarg != NULL |