llvm-project/lldb/source
Pavel Labath af3db4e9aa [lldb] Reduce duplication in the Disassembler class
Summary:
The class has two pairs of functions whose functionalities differ in
only how one specifies how much he wants to disasseble. One limits the
process by the size of the input memory region. The other based on the
total amount of instructions disassembled. They also differ in various
features (like error reporting) that were only added to one of the
versions.

There are various ways in which this could be addressed. This patch
does it by introducing a helper struct called "Limit", which is
effectively a pair specifying the value that you want to limit, and the
actual limit itself.

Reviewers: JDevlieghere

Subscribers: sdardis, jrtc27, atanasyan, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D75730
2020-03-09 13:41:43 +01:00
..
API [lldb] s/ExecutionContext/Target in Disassembler 2020-03-05 14:46:39 +01:00
Breakpoint [lldb][NFC] Move local variables near to their usage 2020-03-04 16:56:51 +03:00
Commands [lldb] Reduce duplication in the Disassembler class 2020-03-09 13:41:43 +01:00
Core [lldb] Reduce duplication in the Disassembler class 2020-03-09 13:41:43 +01:00
DataFormatters [lldb] Let TypeSystemClang::GetDisplayTypeName remove anonymous and inline namespaces. 2020-02-19 10:30:11 +01:00
Expression [lldb][NFC] Modernize logging UserExpression 2020-03-04 09:04:54 -08:00
Host [lldb][cmake] Move remove_module_flags macro to AddLLDB.cmake 2020-03-06 17:21:24 -08:00
Initialization [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Interpreter [lldb] Update the current execution context at the beginning of tab completions 2020-03-06 10:44:00 -08:00
Plugins [lldb] Reduce duplication in the Disassembler class 2020-03-09 13:41:43 +01:00
Symbol [lldb] s/ExecutionContext/Target in Disassembler 2020-03-05 14:46:39 +01:00
Target [lldb] Reduce duplication in the Disassembler class 2020-03-09 13:41:43 +01:00
Utility [lldb/Utility] Use emplace_back instead of push_back (NFC) 2020-03-02 15:54:00 -08:00
CMakeLists.txt Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well. 2020-01-16 19:04:08 -05:00
lldb.cpp [lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY 2020-02-20 10:07:50 -08:00