This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [llgs] Add test for resuming via c in multiprocess scenarios
ClosedPublic

Authored by mgorny on Jun 14 2022, 8:51 AM.

Details

Summary

Add a test verifying that it is possible to resume a single process
via the c packet when multiple processes are being debugged. This
includes a tiny change to the test program — when fork() is called,
the child process is no longer terminated immediately but continues
performing the same tasks as queued for the parent.

Sponsored by: The FreeBSD Foundation

Diff Detail

Event Timeline

mgorny created this revision.Jun 14 2022, 8:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 8:51 AM
Herald added a subscriber: arichardson. · View Herald Transcript
mgorny requested review of this revision.Jun 14 2022, 8:51 AM
mgorny updated this revision to Diff 436869.Jun 14 2022, 11:30 AM

Rename the helper function to future-proof it.

mgorny retitled this revision from [lldb] Add test for resuming via c in multiprocess scenarios to [lldb] [llgs] Add test for resuming via c in multiprocess scenarios.Jun 19 2022, 10:17 PM
labath accepted this revision.Jun 20 2022, 2:17 AM
This revision is now accepted and ready to land.Jun 20 2022, 2:17 AM
This revision was landed with ongoing or failed builds.Jun 24 2022, 8:20 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 8:20 AM
This revision is now accepted and ready to land.Jun 28 2022, 4:24 AM

Thanks for letting me know. I'll set up an AArch64 development environment in a minute and try to figure it out.

Ok, it seems that LLDB is hitting some deadloop on brk #0xf000 in code. I've filed https://github.com/llvm/llvm-project/issues/56268 for it and I'm going to skip the tests relying on traps.

I'm going to try if I manage to get 32-bit ARM container to work as well.

Unfortunately, I wasn't able to get ARM to work (some triple mismatch) but I've masked the tests xfail for now, and both buildbots seem green.

mgorny closed this revision.Jul 3 2022, 11:14 AM

This has been fixed properly in D128780.