summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2015-07-25 02:39:42 +0000
committerJason Molenda <jmolenda@apple.com>2015-07-25 02:39:42 +0000
commit08a3258bd839041bc8e6ef974b46fc784e93504b (patch)
treeed7dcb62771ebd16f09f0c0e3ae731fcfa42c95a /lldb/source/Target/Process.cpp
parenta265b01353673e544e2236bd7f3ed5d5fc20657a (diff)
downloadbcm5719-llvm-08a3258bd839041bc8e6ef974b46fc784e93504b.tar.gz
bcm5719-llvm-08a3258bd839041bc8e6ef974b46fc784e93504b.zip
Add some initial logging for when lldb is searching for binaries,
dSYMs, or reading binaries out of memory to the 'Host' log channel. There's more to be done here, both for Mac and for other platforms, but the initial set of new loggings are useful enough to check in at this point. llvm-svn: 243200
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 17318e7a82b..9594a8ae434 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -3049,6 +3049,11 @@ Process::ReadModuleFromMemory (const FileSpec& file_spec,
lldb::addr_t header_addr,
size_t size_to_read)
{
+ Log *log = lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_HOST);
+ if (log)
+ {
+ log->Printf ("Process::ReadModuleFromMemory reading %s binary from memory", file_spec.GetPath().c_str());
+ }
ModuleSP module_sp (new Module (file_spec, ArchSpec()));
if (module_sp)
{
OpenPOWER on IntegriCloud