llvm-project/lldb
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
..
bindings [lldb] Call __lldb_init_module from __init__ 2022-02-07 14:43:44 -08:00
cmake [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
docs Platform gdb RSP packet doc fixes based on implementation behavior 2022-02-07 23:51:46 -08:00
examples [lldb] Determine the main binary in JSON crashlogs 2022-02-14 21:24:02 -08:00
include/lldb [lldb] Check max_size before resizing DataBufferHeap 2022-02-15 13:58:35 -08:00
packages/Python/lldbsuite Revert "Add -fmodules-local-submodule-visibility to MANDATORY_MODULE_BUILD_CFLAGS" 2022-02-10 15:37:11 -08:00
resources
scripts
source [lldb] Don't rely on wrapping in PutRawBytes/PutBytesAsRawHex8 2022-02-15 20:38:25 -08:00
test [lldb] Fix thread syncrhonization TestThreadBacktraceRepeat 2022-02-15 08:58:39 +01:00
third_party/Python/module [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
tools [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
unittests [lldb] Don't rely on wrapping in PutRawBytes/PutBytesAsRawHex8 2022-02-15 20:38:25 -08:00
utils
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py