This is an archive of the discontinued LLVM Phabricator instance.

[lldb/test] Consolidate interactive scripted process debugging test
ClosedPublic

Authored by mib on Apr 25 2023, 12:57 PM.

Details

Summary

This patch improve the interactive scripted process debugging test by
adding test coverage for child process breakpoint setting and execution
state change.

This patch introduces a new test case for a multiplexed launch, which
does the same thing as the simple passthrough launch. After the
multiplexer process stops, this new test launches 2 other scripted processes
that should contain respectively the even and odd threads from the
multiplexer scripted process.

Then, we create a breakpoint on one the child scripted process, make
sure it was set probably on the child process, the multiplexer process
and the real process. This also test the breakpoint name tagging at the
multiplexer level.

Finally, we resume the child process that had a breakpoint and make sure
that all the processes has stopped at the right location.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>

Diff Detail

Event Timeline

mib created this revision.Apr 25 2023, 12:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 12:57 PM
mib requested review of this revision.Apr 25 2023, 12:57 PM

Seems ok to me. You might want to update the dependencies of this diff so that the pre-merge checks don't fail.

bulbazord accepted this revision.Apr 25 2023, 3:01 PM
This revision is now accepted and ready to land.Apr 25 2023, 3:01 PM
This revision was landed with ongoing or failed builds.Apr 25 2023, 3:05 PM
This revision was automatically updated to reflect the committed changes.