diff options
| author | Jason Molenda <jmolenda@apple.com> | 2012-09-29 08:03:33 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2012-09-29 08:03:33 +0000 |
| commit | d1fae144ba649e48d90b2b8337e294cae2fd7100 (patch) | |
| tree | d3bc56538a363ee2b1f0975709c133e66e5ea0c0 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | |
| parent | 5f9791fd2f0beabf4b54de8bc54dbaaa3093869f (diff) | |
| download | bcm5719-llvm-d1fae144ba649e48d90b2b8337e294cae2fd7100.tar.gz bcm5719-llvm-d1fae144ba649e48d90b2b8337e294cae2fd7100.zip | |
Add the RelocateOrLoadKernel and LoadKernel methods to ProcessGDBRemote::DoRemoteConnect().
When attaching to a remote system that does not look like a typical vendor system, and no
executable binary was specified to lldb, check a couple of fixed locations where kernels
running in ASLR mode (slid in memory to a random address) store their load addr when booted
in debug mode, and relocate the symbols or load the kernel wholesale from the host computer
if we can find it.
<rdar://problem/7714201>
llvm-svn: 164888
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h index 4a716157943..4732fc3a3fc 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -293,6 +293,13 @@ protected: lldb_private::Mutex::Locker locker (m_last_stop_packet_mutex); m_last_stop_packet = response; } + + void + RelocateOrLoadKernel (lldb_private::Stream *strm); + + void + LoadKernel (lldb_private::Stream *strm, lldb_private::UUID kernel_uuid, lldb::addr_t kernel_load_addr); + //------------------------------------------------------------------ /// Broadcaster event bits definitions. //------------------------------------------------------------------ |

