This is an archive of the discontinued LLVM Phabricator instance.

[lldb/test] Make it possible to run the mock gdb server on a single thread
ClosedPublic

Authored by labath on Nov 18 2021, 5:42 AM.

Details

Summary

This is a preparatory commit to enable mocking of qemu startup. That
will involve running the mock server in a separate process, so there's
no need for multithreading.

Initialization is moved from the start function into the constructor
(which can then take an actual socket instead of a class), and the run
method is made public.

Depends on D114156.

Diff Detail

Event Timeline

labath requested review of this revision.Nov 18 2021, 5:42 AM
labath created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2021, 5:42 AM
mgorny accepted this revision.Nov 18 2021, 6:23 AM

I think I may have delayed constructing socket until start() for some reason but maybe it was just originally like that and didn't want to change semantics. If it doesn't break tests, wfm.

This revision is now accepted and ready to land.Nov 18 2021, 6:23 AM