2006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
authorAndrew Stubbs <andrew.stubbs@st.com>
Tue, 21 Feb 2006 19:46:48 +0000 (19:46 +0000)
committerAndrew Stubbs <andrew.stubbs@st.com>
Tue, 21 Feb 2006 19:46:48 +0000 (19:46 +0000)
commit13d35ae5ce3671e55dbb4b2bd8edd7344f0bd3d9
treeb460eea81f76a8386a5cdda56e8188f222ce577a
parent5b96932ba38475227c261557a886e1dff1948ce6
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.
gdb/ChangeLog
gdb/defs.h
gdb/main.c
gdb/source.c