mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user