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
Breakpoint
Core [lldb] Improve RichManglingContext ergonomics (NFC) 2022-02-04 10:17:39 -08:00
DataFormatter
Disassembler
Editline
Expression [llvm][lldb] Remove unused SmallVectorMemoryBuffer.h includes 2021-12-09 11:32:13 +01:00
Host
Instruction
Interpreter
Language
ObjectFile
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
UnwindAssembly
Utility [lldb] Don't rely on wrapping in PutRawBytes/PutBytesAsRawHex8 2022-02-15 20:38:25 -08:00
debugserver
tools [lldb] Delete TestStopReplyContainsThreadPcs 2022-01-18 14:17:33 +01:00
CMakeLists.txt
gtest_common.h