llvm-project/lldb/source/Plugins
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
..
ABI [lldb] Use llvm MC as the source of dwarf/eh register numbers for X86 ABIs 2020-02-28 10:49:08 +01:00
Architecture [lldb] Reduce duplication in the Disassembler class 2020-03-09 13:41:43 +01:00
Disassembler [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
DynamicLoader Fix test broken by simulator triple changes. 2020-03-06 11:28:31 -08:00
ExpressionParser [lldb] Fix more typos in log statements in ClangASTSource 2020-03-05 14:13:09 -08:00
Instruction [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
InstrumentationRuntime [lldb][NFC] Make all CompilerDeclContext parameters references instead of pointers 2020-02-18 08:58:36 +01:00
JITLoader [lldb] Remove DataExtractor::GetPointer 2020-02-18 10:38:41 +01:00
Language Avoid ASTContext.h -> TargetInfo.h dep 2020-02-27 14:35:00 -08:00
LanguageRuntime [lldb] Make BreakpointResolver hold weak_ptr instead of raw pointer to breakpoint 2020-03-04 16:56:50 +03:00
MemoryHistory [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
ObjectContainer [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
ObjectFile [ObjectFileMachO] Fix a build error on embedded. 2020-02-26 14:31:48 -08:00
OperatingSystem [lldb/Plugins] Conditionally build OperatingSystemPython. 2020-02-17 21:22:37 -08:00
Platform [lldb/Plugins] Move SBTarget::GetExtendedCrashInformation to SBProcess 2020-02-24 23:37:04 +01:00
Process [lldb] Remove some #ifdef LLDB_CONFIGURATION_DEBUG around asserts 2020-03-06 11:21:00 -08:00
ScriptInterpreter Allow customized relative PYTHONHOME (Attemp 1) 2020-02-21 16:25:30 -08:00
StructuredData [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
SymbolFile [lldb/DWARF] Fix 80 col formatting (NFC) 2020-03-05 21:28:23 -08:00
SymbolVendor [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
SystemRuntime [lldb] Remove DataExtractor::GetPointer 2020-02-18 10:38:41 +01:00
TypeSystem Fix lldb build failure due to clang mangler change 2020-03-08 00:38:30 -05:00
UnwindAssembly [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
CMakeLists.txt Re-land "[lldb/CMake] Auto-generate the Initialize and Terminate calls for plugin" 2020-02-18 19:16:07 -08:00
Plugins.def.in Re-land "[lldb/CMake] Auto-generate the Initialize and Terminate calls for plugin" 2020-02-18 19:16:07 -08:00