[Lldb-commits] [lldb] r108030 - in /lldb/trunk/source: Core/DataExtractor.cpp Interpreter/StateVariable.cpp Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp

Eli Friedman eli.friedman at gmail.com
Fri Jul 9 18:04:08 CDT 2010


Author: efriedma
Date: Fri Jul  9 18:04:08 2010
New Revision: 108030

URL: http://llvm.org/viewvc/llvm-project?rev=108030&view=rev
Log:
A few more misc warning fixes.


Modified:
    lldb/trunk/source/Core/DataExtractor.cpp
    lldb/trunk/source/Interpreter/StateVariable.cpp
    lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp

Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=108030&r1=108029&r2=108030&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Fri Jul  9 18:04:08 2010
@@ -1485,10 +1485,10 @@
         return start_offset;
 
     uint32_t offset;
-    uint32_t end_offset = offset + length;
+    uint32_t end_offset;
     uint32_t count;
     StreamString sstr;
-    for (offset = start_offset, count = 0; ValidOffset(offset) && offset < end_offset; ++count)
+    for (offset = start_offset, end_offset = offset + length, count = 0; ValidOffset(offset) && offset < end_offset; ++count)
     {
         if ((count % num_per_line) == 0)
         {

Modified: lldb/trunk/source/Interpreter/StateVariable.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/StateVariable.cpp?rev=108030&r1=108029&r2=108030&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/StateVariable.cpp (original)
+++ lldb/trunk/source/Interpreter/StateVariable.cpp Fri Jul  9 18:04:08 2010
@@ -81,8 +81,8 @@
  ) :
     m_name (name),
     m_type (eTypeStringArray),
-    m_help_text (help),
     m_string_values(),
+    m_help_text (help),
     m_verification_func_ptr (func_ptr)
 {
     if (args)

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp?rev=108030&r1=108029&r2=108030&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp Fri Jul  9 18:04:08 2010
@@ -89,7 +89,7 @@
 static void PrintRange(const DWARFDebugAranges::Range& range)
 {
     // Cast the address values in case the address type is compiled as 32 bit
-    printf("0x%8.8x: [0x%8.8llx - 0x%8.8llx)\n", range.offset, (uint64_t)range.lo_pc, (uint64_t)range.hi_pc);
+    printf("0x%8.8x: [0x%8.8llx - 0x%8.8llx)\n", range.offset, (long long)range.lo_pc, (long long)range.hi_pc);
 }
 
 //----------------------------------------------------------------------




More information about the lldb-commits mailing list