From 4bd4e7e3ba8315c4180da954f0af40bbcb07f624 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Sat, 29 Sep 2012 04:02:01 +0000 Subject: 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. llvm-svn: 164881 --- lldb/source/Commands/CommandObjectProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 1e01898b0b9d..5653e7a724e9 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()) { -- cgit v1.2.3