This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [test/Register] Add read/write tests for multithreaded process
ClosedPublic

Authored by mgorny on Oct 12 2020, 9:17 AM.

Details

Summary

Add a test to verify that 'register read' and 'register write' commands
work correctly in a multithreaded program, in particular that they read
or write registers for the correct thread. The tests use locking
to ensure that events are serialized and the test can execute reliably.

// NB: I am going to use this test for initial thread support in FreeBSDRemote.

Diff Detail

Event Timeline

mgorny created this revision.Oct 12 2020, 9:17 AM
mgorny requested review of this revision.Oct 12 2020, 9:17 AM
mgorny updated this revision to Diff 297893.Oct 13 2020, 9:37 AM

Fixed .cpp file name and removed unused mutex.

Looks reasonable to me and currently fails (as expected) on FreeBSD.

This revision is now accepted and ready to land.Oct 14 2020, 1:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2020, 2:08 AM