summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Subprocess
AgeCommit message (Collapse)Author
2024-10-31[lldb] Remove lldb-repro utilityJonas Devlieghere
Remove lldb-repro which was used to run the test suite against a reproducer. The corresponding functionality has been removed from LLDB so there's no need for the tool anymore.
2023-09-08[lldb][AArch64] Re-enable clone follow tests on AArch64 LinuxDavid Spickett
Fixes #49243 By unknown means, these have been fixed since the UNSUPPORTED was added.
2021-09-13[lldb] [test] Remove parent output checks from follow-child testsMichał Górny
Remove the parent output checks, as they make the test flaky while serving no real purpose. If the parent crashed/hanged, it will never resume the child and the test would fail anyway.
2021-09-10[lldb] [test] Remove parent check in Subprocess/clone-follow-child-softbp.testMichał Górny
Hopefully this will resolve the remaining flakiness.
2021-09-10[lldb] [test] Synchronize before the breakpoint in fork testsMichał Górny
We set breakpoint on child_func, so synchronization inside it is too late to guarantee ordering between the parent output and child breakpoint. Split the function in two, and perform synchronization before the breakpoint. Differential Revision: https://reviews.llvm.org/D109591
2021-09-10[lldb] [test] Add synchronization fix Subprocess test flakinessMichał Górny
Add synchronization routines to ensure that Subprocess tests output in a predictable order, and all test strings are output before the tests terminate. Differential Revision: https://reviews.llvm.org/D109495
2021-09-03[lldb] [test] Mark the remaining vfork-follow-child test unsupported (flaky) ↵Michał Górny
on aarch64
2021-09-03[lldb] [test] Mark vfork-follow-child-* tests unsupported (flaky) on aarch64Michał Górny
2021-09-03[lldb] [test] Mark *fork-follow-child* tests non-DarwinMichał Górny
2021-09-02[lldb] [client] Implement follow-fork-modeMichał Górny
Implement a new target.process.follow-fork-mode setting to control LLDB's behavior on fork. If set to 'parent', the forked child is detached and parent continues being traced. If set to 'child', the parent is detached and child becomes traced instead. Differential Revision: https://reviews.llvm.org/D100503
2021-09-01[lldb] [gdb-remote client] Remove breakpoints throughout vforkMichał Górny
Temporarily remove breakpoints for the duration of vfork, in order to prevent them from triggering in the child process. Restore them once the server reports that vfork has finished and it is ready to resume execution. Differential Revision: https://reviews.llvm.org/D100267
2021-09-01Revert "[lldb] [gdb-remote client] Remove breakpoints throughout vfork"Michał Górny
This reverts commit 199344d832c1bed1d75b1db2c1493e5a3e5c5544. It caused regressions on arm, as reported by lldb-arm-ubuntu buildbot.
2021-09-01[lldb] [gdb-remote client] Remove breakpoints throughout vforkMichał Górny
Temporarily remove breakpoints for the duration of vfork, in order to prevent them from triggering in the child process. Restore them once the server reports that vfork has finished and it is ready to resume execution. Differential Revision: https://reviews.llvm.org/D100267
2021-08-31[lldb] [test] Mark fork-follow-parent-softbp.test as darwin-unsupportedMichał Górny
2021-08-31[lldb] [gdb-remote client] Remove breakpoints in forked processesMichał Górny
Remove software breakpoints from forked processes in order to restore the original program code before detaching it. Differential Revision: https://reviews.llvm.org/D100263
2021-04-13Reland "[lldb] [Process] Watch for fork/vfork notifications" for LinuxMichał Górny
Big thanks to Pavel Labath for figuring out my mistake. Differential Revision: https://reviews.llvm.org/D98822
2021-04-13Reland "[lldb] [Process] Watch for fork/vfork notifications" for NetBSDMichał Górny
Differential Revision: https://reviews.llvm.org/D98822
2021-04-13Reland "[lldb] [Process] Watch for fork/vfork notifications" for FreeBSDMichał Górny
The original commit was reverted because of the problems it introduced on Linux. However, FreeBSD should not be affected, so restore that part and we will address Linux separately. While at it, remove the dbreg hack as the underlying issue has been fixed in the FreeBSD kernel and the problem is unlikely to happen in real life use anyway. Differential Revision: https://reviews.llvm.org/D98822
2021-04-13Revert "[lldb] [Process] Watch for fork/vfork notifications" and associated ↵Pavel Labath
followups This commit has caused the following tests to be flaky: TestThreadSpecificBpPlusCondition.py TestExitDuringExpression.py The exact cause is not known yet, but since both tests deal with threads, my guess is it has something to do with the tracking of creation of new threads (which the commit touches upon). This reverts the following commits: d01bff8cbdc98fb8751f7bf10af19b47ae5c445d, ba62ebc48e8c424ce3a78ba01acda679d536dd47, e761b6b4c58d4f7ae1073d925d7cb321d68ee93a, a345419ee03095c8cdfbe1c2728467c4da8fa0a4.
2021-04-12[lldb] Disable Shell/Subporcess with reproducersJonas Devlieghere
2021-04-08[lldb] (Temporarily) disable vfork-follow-parent-wp.test on DarwinJonas Devlieghere
The test is failing on GreenDragon. Pinged Michał in D98822.
2021-04-08[lldb] [test] Skip clone() tests on Linux/aarch64Michał Górny
2021-04-08[lldb] [Process] Watch for fork/vfork notificationsMichał Górny
Watch for fork(2)/vfork(2) (also fork/vfork-style clone(2) on Linux) notifications and explicitly detach the forked child process, and add initial tests for these cases. The code covers FreeBSD, Linux and NetBSD process plugins. There is no new user-visible functionality provided -- this change lays foundations over subsequent work on fork support. Differential Revision: https://reviews.llvm.org/D98822