aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2012-09-29 04:02:01 +0000
committerJason Molenda <jmolenda@apple.com>2012-09-29 04:02:01 +0000
commit4bd4e7e3ba8315c4180da954f0af40bbcb07f624 (patch)
tree0eb343bc870d4d1efbd900f05316cec7bca61f8d /lldb/source/Commands/CommandObjectProcess.cpp
parent913b8763290ac7d1b83be9e26067d86400b0e5e0 (diff)
downloadllvm-4bd4e7e3ba8315c4180da954f0af40bbcb07f624.zip
llvm-4bd4e7e3ba8315c4180da954f0af40bbcb07f624.tar.gz
llvm-4bd4e7e3ba8315c4180da954f0af40bbcb07f624.tar.bz2
Add support for debugging KASLR kernels via kdp (the kernel being
loaded at a random offset). To get the kernel's UUID and load address I need to send a kdp packet so I had to implement the kernel relocation (and attempt to find the kernel if none was provided to lldb already) in ProcessKDP -- but this code really properly belongs in DynamicLoaderDarwinKernel. I also had to add an optional Stream to ConnectRemote so ProcessKDP::DoConnectRemote can print feedback about the remote kernel's UUID, load address, and notify the user if we auto-loaded the kernel via the UUID. <rdar://problem/7714201> llvm-svn: 164881
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 1e01898..5653e7a 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -1041,7 +1041,7 @@ protected:
if (process)
{
- error = process->ConnectRemote (remote_url);
+ error = process->ConnectRemote (&process->GetTarget().GetDebugger().GetOutputStream(), remote_url);
if (error.Fail())
{