[Lldb-commits] [PATCH] D42195: [lldb] Generic base for testing gdb-remote behavior
Owen Shaw via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 17 12:53:19 PST 2018
owenpshaw created this revision.
owenpshaw added reviewers: clayborg, labath.
Adds new utilities that make it easier to write test cases for lldb acting as a client over a gdb-remote connection.
- A GDBRemoteTestBase class that starts a mock GDB server and provides an easy way to check client packets
- A MockGDBServer that, via MockGDBServerResponder, can be made to issue server responses that test client behavior.
- Utility functions for handling common data encoding/decoding
- Utility functions for creating dummy targets from YAML files
----
Split from the review at https://reviews.llvm.org/D42145, which was a new feature that necessitated the new testing capabilities.
https://reviews.llvm.org/D42195
Files:
packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py
packages/Python/lldbsuite/test/functionalities/gdb_remote_client/a.yaml
packages/Python/lldbsuite/test/functionalities/gdb_remote_client/gdbclientutils.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42195.130253.patch
Type: text/x-patch
Size: 16769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180117/47a1dbca/attachment.bin>
More information about the lldb-commits
mailing list