[Lldb-commits] [lldb] r145735 - in /lldb/trunk: include/lldb/Breakpoint/StoppointLocation.h source/API/SBProcess.cpp source/Breakpoint/StoppointLocation.cpp source/Breakpoint/Watchpoint.cpp source/Symbol/Type.cpp

Greg Clayton gclayton at apple.com
Fri Dec 2 16:46:21 PST 2011


Author: gclayton
Date: Fri Dec  2 18:46:21 2011
New Revision: 145735

URL: http://llvm.org/viewvc/llvm-project?rev=145735&view=rev
Log:
Fixed some extra warnings that show up with the new clang.


Modified:
    lldb/trunk/include/lldb/Breakpoint/StoppointLocation.h
    lldb/trunk/source/API/SBProcess.cpp
    lldb/trunk/source/Breakpoint/StoppointLocation.cpp
    lldb/trunk/source/Breakpoint/Watchpoint.cpp
    lldb/trunk/source/Symbol/Type.cpp

Modified: lldb/trunk/include/lldb/Breakpoint/StoppointLocation.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Breakpoint/StoppointLocation.h?rev=145735&r1=145734&r2=145735&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Breakpoint/StoppointLocation.h (original)
+++ lldb/trunk/include/lldb/Breakpoint/StoppointLocation.h Fri Dec  2 18:46:21 2011
@@ -32,7 +32,7 @@
 
     StoppointLocation (lldb::break_id_t bid,
                        lldb::addr_t m_addr,
-                       size_t size,
+                       uint32_t byte_size,
                        bool hardware);
 
     virtual
@@ -57,7 +57,7 @@
         return m_addr;
     }
 
-    size_t
+    uint32_t
     GetByteSize () const
     {
         return m_byte_size;

Modified: lldb/trunk/source/API/SBProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBProcess.cpp?rev=145735&r1=145734&r2=145735&view=diff
==============================================================================
--- lldb/trunk/source/API/SBProcess.cpp (original)
+++ lldb/trunk/source/API/SBProcess.cpp Fri Dec  2 18:46:21 2011
@@ -732,7 +732,7 @@
                      m_opaque_sp.get(), 
                      addr, 
                      dst, 
-                     (uint32_t) dst_len, 
+                     dst_len, 
                      sb_error.get());
     }
 
@@ -752,14 +752,14 @@
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::ReadMemory (addr=0x%llx, dst=%p, dst_len=%zu, SBError (%p): %s) => %d", 
+        log->Printf ("SBProcess(%p)::ReadMemory (addr=0x%llx, dst=%p, dst_len=%zu, SBError (%p): %s) => %zu", 
                      m_opaque_sp.get(), 
                      addr, 
                      dst, 
-                     (uint32_t) dst_len, 
+                     dst_len, 
                      sb_error.get(), 
                      sstr.GetData(),
-                     (uint32_t) bytes_read);
+                     bytes_read);
     }
 
     return bytes_read;
@@ -777,7 +777,7 @@
                      m_opaque_sp.get(), 
                      addr, 
                      src, 
-                     (uint32_t) src_len, 
+                     src_len, 
                      sb_error.get());
     }
 
@@ -793,14 +793,14 @@
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::WriteMemory (addr=0x%llx, src=%p, dst_len=%zu, SBError (%p): %s) => %d", 
+        log->Printf ("SBProcess(%p)::WriteMemory (addr=0x%llx, src=%p, dst_len=%zu, SBError (%p): %s) => %zu", 
                      m_opaque_sp.get(), 
                      addr, 
                      src, 
-                     (uint32_t) src_len, 
+                     src_len, 
                      sb_error.get(), 
                      sstr.GetData(),
-                     (uint32_t) bytes_written);
+                     bytes_written);
     }
 
     return bytes_written;

Modified: lldb/trunk/source/Breakpoint/StoppointLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/StoppointLocation.cpp?rev=145735&r1=145734&r2=145735&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/StoppointLocation.cpp (original)
+++ lldb/trunk/source/Breakpoint/StoppointLocation.cpp Fri Dec  2 18:46:21 2011
@@ -30,12 +30,12 @@
 {
 }
 
-StoppointLocation::StoppointLocation (break_id_t bid, addr_t addr, size_t size, bool hardware) :
+StoppointLocation::StoppointLocation (break_id_t bid, addr_t addr, uint32_t byte_size, bool hardware) :
     m_loc_id(bid),
     m_addr(addr),
     m_hw_preferred(hardware),
     m_hw_index(LLDB_INVALID_INDEX32),
-    m_byte_size(size),
+    m_byte_size(byte_size),
     m_hit_count(0)
 {
 }

Modified: lldb/trunk/source/Breakpoint/Watchpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Watchpoint.cpp?rev=145735&r1=145734&r2=145735&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/Watchpoint.cpp (original)
+++ lldb/trunk/source/Breakpoint/Watchpoint.cpp Fri Dec  2 18:46:21 2011
@@ -112,7 +112,7 @@
     assert(description_level >= lldb::eDescriptionLevelBrief &&
            description_level <= lldb::eDescriptionLevelVerbose);
 
-    s->Printf("Watchpoint %u: addr = 0x%8.8llx size = %zu state = %s type = %s%s",
+    s->Printf("Watchpoint %u: addr = 0x%8.8llx size = %u state = %s type = %s%s",
               GetID(),
               (uint64_t)m_addr,
               m_byte_size,

Modified: lldb/trunk/source/Symbol/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Type.cpp?rev=145735&r1=145734&r2=145735&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Type.cpp (original)
+++ lldb/trunk/source/Symbol/Type.cpp Fri Dec  2 18:46:21 2011
@@ -109,7 +109,7 @@
 
     // Call the get byte size accesor so we resolve our byte size
     if (GetByteSize())
-        s->Printf(", byte-size = %zu", m_byte_size);
+        s->Printf(", byte-size = %u", m_byte_size);
     bool show_fullpaths = (level == lldb::eDescriptionLevelVerbose);
     m_decl.Dump(s, show_fullpaths);
 
@@ -149,7 +149,7 @@
         *s << ", name = \"" << m_name << "\"";
 
     if (m_byte_size != 0)
-        s->Printf(", size = %zu", m_byte_size);
+        s->Printf(", size = %u", m_byte_size);
 
     if (show_context && m_context != NULL)
     {





More information about the lldb-commits mailing list