aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-08-11 16:25:18 +0000
committerGreg Clayton <gclayton@apple.com>2011-08-11 16:25:18 +0000
commitaa5168431881725f091bc774a370d245878f8f66 (patch)
tree48e068e28a97529285cda6a75edfcefe981a0bd3 /lldb/source/Commands/CommandObjectProcess.cpp
parent5a2c70cc8f0753ae35c969fdff96886a9a0bf380 (diff)
downloadllvm-aa5168431881725f091bc774a370d245878f8f66.zip
llvm-aa5168431881725f091bc774a370d245878f8f66.tar.gz
llvm-aa5168431881725f091bc774a370d245878f8f66.tar.bz2
Patch for "process load" by Filipe Cabecinhas.
Filipe was attempting to do a: (lldb) process load ~/path/foo.dylib But the process load command wasn't resolving the path. We have to be careful about resolving the path here because we want to do it in terms of the platform we are using. the "~/" can mean a completely different path if you are remotely debugging on another machine as another user. So to support this, platforms now can resolve remote paths: bool Platform::ResolveRemotePath (const FileSpec &platform_path, FileSpec &resolved_platform_path); The host/local platform will just resolve the path. llvm-svn: 137307
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 2c22880..4a15ecd1 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -1172,6 +1172,7 @@ public:
Error error;
const char *image_path = command.GetArgumentAtIndex(i);
FileSpec image_spec (image_path, false);
+ process->GetTarget().GetPlatform()->ResolveRemotePath(image_spec, image_spec);
uint32_t image_token = process->LoadImage(image_spec, error);
if (image_token != LLDB_INVALID_IMAGE_TOKEN)
{