diff options
author | Jim Ingham <jingham@apple.com> | 2012-11-07 01:52:04 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-11-07 01:52:04 +0000 |
commit | d073fe4e5b79557d4e8662db1a7d9465dc19fdb3 (patch) | |
tree | 07bd83120ff6bb15fdf4b9d6628e16525540cbc0 | |
parent | 514fc6fa0fdf22971a9237c9a1ad5604d9eae839 (diff) | |
download | bcm5719-llvm-d073fe4e5b79557d4e8662db1a7d9465dc19fdb3.tar.gz bcm5719-llvm-d073fe4e5b79557d4e8662db1a7d9465dc19fdb3.zip |
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>
llvm-svn: 167520
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 5360e71acdd..99a35932355 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -148,7 +148,7 @@ public: 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; |