From a0ca6601bc814e4b248eb473e7cfcd91844ccee2 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 18 Oct 2012 16:33:33 +0000 Subject: More fixes to how we handle paths that are used to create a target. This modification centralizes the location where and how what the user specifies gets resolved. Prior to this fix, the TargetList::CreateTarget variants took a FileSpec object which meant everyone had the opportunity to resolve the path their own way. Now both CreateTarget variants take a "const char *use_exe_path" which allows the TargetList::CreateTarget to centralize where the resolving happens and "do the right thing". llvm-svn: 166186 --- lldb/source/Commands/CommandObjectProcess.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 441aee9..764b128 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -521,11 +521,10 @@ protected: { // If there isn't a current target create one. TargetSP new_target_sp; - FileSpec emptyFileSpec; Error error; error = m_interpreter.GetDebugger().GetTargetList().CreateTarget (m_interpreter.GetDebugger(), - emptyFileSpec, + NULL, NULL, false, NULL, // No platform options @@ -1022,10 +1021,9 @@ protected: if (!target_sp) { // If there isn't a current target create one. - FileSpec emptyFileSpec; error = m_interpreter.GetDebugger().GetTargetList().CreateTarget (m_interpreter.GetDebugger(), - emptyFileSpec, + NULL, NULL, false, NULL, // No platform options -- cgit v1.1