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
This commit is contained in:
Jason Molenda
2012-09-29 04:02:01 +00:00
parent 913b876329
commit 4bd4e7e3ba
12 changed files with 227 additions and 14 deletions

View File

@@ -1087,7 +1087,7 @@ SBTarget::ConnectRemote
if (process_sp)
{
sb_process.SetSP (process_sp);
error.SetError (process_sp->ConnectRemote (url));
error.SetError (process_sp->ConnectRemote (NULL, url));
}
else
{