[Lldb-commits] [PATCH] D35311: lldb-server tests: Add support for testing debugserver

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 12 09:46:39 PDT 2017


labath created this revision.
Herald added subscribers: mgorny, srhines.

This adds support for running the lldb-server test suite (currently consisting
of only one test) against the debugserver. Currently, the choice which binary
to test is based on the host system. This will need to be replaced by something
more elaborate if/when lldb-server starts supporting debugging on darwin.

I need to make a couple of tweaks to the test client to work with debugserver:

- debugserver has different command-line arguments - launching code adjusted to handle that
- debugserver sends duplicate "medata" fields in the stop reply packet - adjusted stop-reply parsing code to handle that
- debugserver replies to the k packet instead of just dropping the connection - stopping code adjusted, although we should probably consider aligning the behavior of the two stubs in this case


https://reviews.llvm.org/D35311

Files:
  unittests/tools/CMakeLists.txt
  unittests/tools/lldb-server/CMakeLists.txt
  unittests/tools/lldb-server/tests/MessageObjects.cpp
  unittests/tools/lldb-server/tests/MessageObjects.h
  unittests/tools/lldb-server/tests/TestClient.cpp
  unittests/tools/lldb-server/tests/TestClient.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35311.106247.patch
Type: text/x-patch
Size: 9017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170712/3bcf1394/attachment.bin>


More information about the lldb-commits mailing list