<rdar://problem/12827031>
authorGreg Clayton <gclayton@apple.com>
Mon, 10 Dec 2012 19:43:43 +0000 (19:43 +0000)
committerGreg Clayton <gclayton@apple.com>
Mon, 10 Dec 2012 19:43:43 +0000 (19:43 +0000)
commitc5e2085629069f44adbc6d193824484a91320843
tree00204961ce07066bf85c8bc5489035555a734780
parent7b5b55c1959284b3938615de8aa71f61bbcb270d
<rdar://problem/12827031>

Fix the OptionValueFileSpec option value to correctly get the file path when trailing spaces are on the path. The "settings set" command uses the OptionValueFileSpec class to set file paths and if extra spaces are at the end it will include those in the paths. Now we chop up the value send to to OptionValueFileSpec::SetValueFromCString(...) function with "lldb_private::Args" and give an appropriate error if more than one path is used. It also allows for quotes to be used when specifying the path.

llvm-svn: 169753
lldb/source/Interpreter/OptionValueFileSpec.cpp