diff options
author | Jason Molenda <jmolenda@apple.com> | 2012-09-29 04:02:01 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2012-09-29 04:02:01 +0000 |
commit | 4bd4e7e3ba8315c4180da954f0af40bbcb07f624 (patch) | |
tree | 0eb343bc870d4d1efbd900f05316cec7bca61f8d /lldb/source/Target/Process.cpp | |
parent | 913b8763290ac7d1b83be9e26067d86400b0e5e0 (diff) | |
download | bcm5719-llvm-4bd4e7e3ba8315c4180da954f0af40bbcb07f624.tar.gz bcm5719-llvm-4bd4e7e3ba8315c4180da954f0af40bbcb07f624.zip |
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/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 4ad52a29677..5858f9972f2 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -2906,7 +2906,7 @@ Process::CompleteAttach () } Error -Process::ConnectRemote (const char *remote_url) +Process::ConnectRemote (Stream *strm, const char *remote_url) { m_abi_sp.reset(); m_process_input_reader.reset(); @@ -2914,7 +2914,7 @@ Process::ConnectRemote (const char *remote_url) // Find the process and its architecture. Make sure it matches the architecture // of the current Target, and if not adjust it. - Error error (DoConnectRemote (remote_url)); + Error error (DoConnectRemote (strm, remote_url)); if (error.Success()) { if (GetID() != LLDB_INVALID_PROCESS_ID) |