[Lldb-commits] [PATCH] D76163: [lldb/Reproducers] Decode run-length encoding in GDB replay server.
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 16 10:52:37 PDT 2020
shafik added inline comments.
================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp:1374
+ // Number of time the previous character is repeated.
+ int repeat_count = *++c + 3 - ' ';
+ // We have the char_to_repeat and repeat_count. Now push it in the
----------------
This line feels cryptic. Why `3` and `' '`. Maybe two lines would be better, still have to think carefully about order of operations too.
The code is using three representations for characters: char literals, raw integers and hex. Maybe use hex everywhere would be more consistent.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76163/new/
https://reviews.llvm.org/D76163
More information about the lldb-commits
mailing list