[Lldb-commits] [lldb] r167520 - /lldb/trunk/source/Commands/CommandObjectMemory.cpp

Jim Ingham jingham at apple.com
Tue Nov 6 17:52:04 PST 2012


Author: jingham
Date: Tue Nov  6 19:52:04 2012
New Revision: 167520

URL: http://llvm.org/viewvc/llvm-project?rev=167520&view=rev
Log:
When we were calculating the max byte size of ONE instruction to handle something like

x/9i

we actually calculated the size of 9 instructions.  Then we multiplied it by the count again 
to get the total amount we should fetch, so we thought 9 x86_64 instructions took over 1K
to fetch...

<rdar://problem/12649027>

Modified:
    lldb/trunk/source/Commands/CommandObjectMemory.cpp

Modified: lldb/trunk/source/Commands/CommandObjectMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectMemory.cpp?rev=167520&r1=167519&r2=167520&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectMemory.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectMemory.cpp Tue Nov  6 19:52:04 2012
@@ -148,7 +148,7 @@
 
             case eFormatInstruction:
                 if (count_option_set)
-                    byte_size_value = target->GetArchitecture().GetMaximumOpcodeByteSize() * format_options.GetCountValue().GetCurrentValue();
+                    byte_size_value = target->GetArchitecture().GetMaximumOpcodeByteSize();
                 m_num_per_line = 1;
                 break;
 





More information about the lldb-commits mailing list