summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2012-09-29 08:03:33 +0000
committerJason Molenda <jmolenda@apple.com>2012-09-29 08:03:33 +0000
commitd1fae144ba649e48d90b2b8337e294cae2fd7100 (patch)
treed3bc56538a363ee2b1f0975709c133e66e5ea0c0 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
parent5f9791fd2f0beabf4b54de8bc54dbaaa3093869f (diff)
downloadbcm5719-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.h7
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.
//------------------------------------------------------------------
OpenPOWER on IntegriCloud