[Lldb-commits] [lldb] [lldb][NFC] Add test utility for sending gdbremote packets (PR #195247)
via lldb-commits
lldb-commits at lists.llvm.org
Fri May 1 03:22:02 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD lldb/packages/Python/lldbsuite/test/lldbutil.py lldb/test/API/functionalities/multi-breakpoint/TestMultiBreakpoint.py lldb/test/API/macosx/debugserver-multimemread/TestDebugserverMultiMemRead.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- packages/Python/lldbsuite/test/lldbutil.py 2026-05-01 10:19:52.000000 +0000
+++ packages/Python/lldbsuite/test/lldbutil.py 2026-05-01 10:21:29.244464 +0000
@@ -1869,10 +1869,11 @@
if matches_found == total_patterns:
break
return exe_path, matched_strings
+
# Binary escapes `packet_str`, sends it to the remote and returns the reply.
def send_packet_get_reply(test, packet_str):
packet_str = escape_binary(packet_str)
test.runCmd(f"proc plugin packet send '{packet_str}'", check=False)
# The output is of the form:
``````````
</details>
https://github.com/llvm/llvm-project/pull/195247
More information about the lldb-commits
mailing list