diff options
Diffstat (limited to 'lldb/source/Target')
-rw-r--r-- | lldb/source/Target/Memory.cpp | 3 | ||||
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Target/Target.cpp | 6 | ||||
-rw-r--r-- | lldb/source/Target/ThreadList.cpp | 4 |
4 files changed, 7 insertions, 10 deletions
diff --git a/lldb/source/Target/Memory.cpp b/lldb/source/Target/Memory.cpp index 16fcdcafb96..a011bd25d66 100644 --- a/lldb/source/Target/Memory.cpp +++ b/lldb/source/Target/Memory.cpp @@ -68,14 +68,11 @@ MemoryCache::Flush (addr_t addr, size_t size) else num_cache_lines = (UINT64_MAX - first_cache_line_addr + 1)/cache_line_byte_size; - //printf ("MemoryCache::Flush (0x%16.16llx, %zu (0x%zx))\n", addr, size, size); - uint32_t cache_idx = 0; for (addr_t curr_addr = first_cache_line_addr; cache_idx < num_cache_lines; curr_addr += cache_line_byte_size, ++cache_idx) { - //printf ("flushing: 0x%16.16llx\n", curr_addr); /// REMOVE THIS PRIOR TO CHECKIN!!!! BlockMap::iterator pos = m_cache.find (curr_addr); if (pos != m_cache.end()) m_cache.erase(pos); diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 88d08cf28a3..4ad52a29677 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3920,7 +3920,7 @@ Process::GetSTDOUT (char *buf, size_t buf_size, Error &error) { LogSP log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS)); if (log) - log->Printf ("Process::GetSTDOUT (buf = %p, size = %zu)", buf, buf_size); + log->Printf ("Process::GetSTDOUT (buf = %p, size = %llu)", buf, (uint64_t)buf_size); if (bytes_available > buf_size) { memcpy(buf, m_stdout_data.c_str(), buf_size); @@ -3946,7 +3946,7 @@ Process::GetSTDERR (char *buf, size_t buf_size, Error &error) { LogSP log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_PROCESS)); if (log) - log->Printf ("Process::GetSTDERR (buf = %p, size = %zu)", buf, buf_size); + log->Printf ("Process::GetSTDERR (buf = %p, size = %llu)", buf, (uint64_t)buf_size); if (bytes_available > buf_size) { memcpy(buf, m_stderr_data.c_str(), buf_size); diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index ab50e346e88..9fbf08bb890 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -527,8 +527,8 @@ Target::CreateWatchpoint(lldb::addr_t addr, size_t size, uint32_t type, Error &e { LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_WATCHPOINTS)); if (log) - log->Printf("Target::%s (addr = 0x%8.8llx size = %zu type = %u)\n", - __FUNCTION__, addr, size, type); + log->Printf("Target::%s (addr = 0x%8.8llx size = %llu type = %u)\n", + __FUNCTION__, addr, (uint64_t)size, type); WatchpointSP wp_sp; if (!ProcessIsValid()) @@ -1235,7 +1235,7 @@ Target::ReadMemory (const Address& addr, if (bytes_read == 0) error.SetErrorStringWithFormat("read memory from 0x%llx failed", load_addr); else - error.SetErrorStringWithFormat("only %zu of %zu bytes were read from memory at 0x%llx", bytes_read, dst_len, load_addr); + error.SetErrorStringWithFormat("only %llu of %llu bytes were read from memory at 0x%llx", (uint64_t)bytes_read, (uint64_t)dst_len, load_addr); } } if (bytes_read) diff --git a/lldb/source/Target/ThreadList.cpp b/lldb/source/Target/ThreadList.cpp index 0420c49014b..8d97c931f98 100644 --- a/lldb/source/Target/ThreadList.cpp +++ b/lldb/source/Target/ThreadList.cpp @@ -189,7 +189,7 @@ ThreadList::ShouldStop (Event *event_ptr) if (log) { log->PutCString(""); - log->Printf ("ThreadList::%s: %zu threads", __FUNCTION__, m_threads.size()); + log->Printf ("ThreadList::%s: %llu threads", __FUNCTION__, (uint64_t)m_threads.size()); } for (pos = m_threads.begin(); pos != end; ++pos) @@ -228,7 +228,7 @@ ThreadList::ShouldReportStop (Event *event_ptr) LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP)); if (log) - log->Printf ("ThreadList::%s %zu threads", __FUNCTION__, m_threads.size()); + log->Printf ("ThreadList::%s %llu threads", __FUNCTION__, (uint64_t)m_threads.size()); // Run through the threads and ask whether we should report this event. // For stopping, a YES vote wins over everything. A NO vote wins over NO opinion. |