llvm-project/lldb/unittests
Jonas Devlieghere 920146316d [lldb] Don't rely on wrapping in PutRawBytes/PutBytesAsRawHex8
I was looking at Stream::PutRawBytes and thought I spotted a bug because
both loops are using `i < src_len` as the loop condition despite them
iterating in opposite directions.

On closer inspection, the existing code is correct, because it relies on
well-defined unsigned integer wrapping. Correct doesn't mean readable,
so this patch changes the loop condition to compare against 0 when
decrementing i while still covering the edge case of src_len potentially
being 0 itself.

Differential revision: https://reviews.llvm.org/D119857
2022-02-15 20:38:25 -08:00
..
API [lldb] Handle missing SBStructuredData copy assignment cases 2021-05-05 15:12:03 -07:00
Breakpoint
Core [lldb] Improve RichManglingContext ergonomics (NFC) 2022-02-04 10:17:39 -08:00
DataFormatter [nfc] [lldb] Prevent needless copies of DataExtractor 2021-08-04 20:35:53 +02:00
Disassembler [lldb/Plugins] Rename lldbPluginDisassemblerLLVM (NFC) 2020-02-17 19:14:01 -08:00
Editline [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
Expression [llvm][lldb] Remove unused SmallVectorMemoryBuffer.h includes 2021-12-09 11:32:13 +01:00
Host [lldb] [Host/Socket] Make DecodeHostAndPort() return a dedicated struct 2021-10-28 09:57:50 +02:00
Instruction Fix UB in EmulateInstructionARM64.cpp 2020-06-01 18:11:50 -07:00
Interpreter Follow-on to fix a test from c5011aed9c. 2021-10-18 16:53:32 -07:00
Language [lldb] Return StringRef from PluginInterface::GetPluginName 2021-10-18 10:14:42 +02:00
ObjectFile [LLDB][Breakpad] Make lldb understand INLINE and INLINE_ORIGIN records in breakpad. 2021-11-10 11:20:32 -08:00
Platform [lldb] [Platform] Support synthesizing siginfo_t 2022-01-27 13:33:47 +01:00
Process [lldb][AArch64] Add MakeTaggedRanges to MemoryTagManager 2022-01-26 11:30:10 +00:00
ScriptInterpreter [lldb] Initialize Python exactly once 2022-01-19 09:56:55 -08:00
Signals
Symbol Cleanup LLVMDWARFDebugInfo 2022-02-15 09:16:03 +01:00
SymbolFile Cleanup LLVMDWARFDebugInfo 2022-02-15 09:16:03 +01:00
Target [lldb] Add MemoryTagMap class 2022-01-26 13:55:48 +00:00
TestingSupport Add missing STLExtras.h include from lldb/unittests/TestingSupport/MockTildeExpressionResolver.cpp 2022-01-24 15:03:11 +01:00
Thread [lldb] Return StringRef from PluginInterface::GetPluginName 2021-10-18 10:14:42 +02:00
UnwindAssembly Bug where insn-based unwind plans on arm64 could be wrong 2020-04-14 16:57:25 -07:00
Utility [lldb] Don't rely on wrapping in PutRawBytes/PutBytesAsRawHex8 2022-02-15 20:38:25 -08:00
debugserver [lldb] [unittests] Fix TcpListen() call in RNBSocketTest 2021-10-26 21:08:03 +02:00
tools [lldb] Delete TestStopReplyContainsThreadPcs 2022-01-18 14:17:33 +01:00
CMakeLists.txt Re-land "[lldb] Make the API, Shell and Unit tests independent lit test suites" 2021-03-22 14:36:43 -07:00
gtest_common.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00