Skip to content

Commit 1bce61e

Browse files
committed
[lldb] Remove PopPlan asserts and skip test on Arm/AArch64 Linux
This reverts commit 481bb62 and 71b4d74, along with the logging and assert I had added to the test previously. Now that I've caught it failing on Arm: https://lab.llvm.org/buildbot/#/builders/17/builds/46598 Now I have enough to investigate, skip the test on the effected platforms while I do that.
1 parent ab3430f commit 1bce61e

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

lldb/source/Target/Thread.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -717,17 +717,6 @@ void Thread::DidResume() {
717717

718718
void Thread::DidStop() { SetState(eStateStopped); }
719719

720-
#define CHECK_BEFORE_POP_PLAN \
721-
{ \
722-
uint32_t i = 0; \
723-
ThreadPlanSP p; \
724-
while ((p = GetPlans().GetPlanByIndex(i, false))) \
725-
i++; \
726-
(void)i; \
727-
assert(i != 1 && \
728-
"Cannot pop plan when there is only one plan (the base plan)"); \
729-
}
730-
731720
bool Thread::ShouldStop(Event *event_ptr) {
732721
ThreadPlan *current_plan = GetCurrentPlan();
733722

@@ -842,7 +831,6 @@ bool Thread::ShouldStop(Event *event_ptr) {
842831
do {
843832
if (should_stop)
844833
current_plan->WillStop();
845-
CHECK_BEFORE_POP_PLAN;
846834
PopPlan();
847835
} while ((current_plan = GetCurrentPlan()) != prev_plan_ptr);
848836
// Now, if the responsible plan was not "Okay to discard" then
@@ -895,7 +883,6 @@ bool Thread::ShouldStop(Event *event_ptr) {
895883
// If a Controlling Plan wants to stop, we let it. Otherwise, see if
896884
// the plan's parent wants to stop.
897885

898-
CHECK_BEFORE_POP_PLAN;
899886
PopPlan();
900887
if (should_stop && current_plan->IsControllingPlan() &&
901888
!current_plan->OkayToDiscard()) {
@@ -944,7 +931,6 @@ bool Thread::ShouldStop(Event *event_ptr) {
944931
// plan is complete but does not explain the stop (example: step to a
945932
// line with breakpoint), let us move the plan to
946933
// completed_plan_stack anyway
947-
CHECK_BEFORE_POP_PLAN;
948934
PopPlan();
949935
} else
950936
DiscardPlan();

lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def copy_to_main(self, src, dst):
3434
# The rerun tests indicate rerunning on Windows doesn't really work, so
3535
# this one won't either.
3636
@skipIfWindows
37+
# On Arm and AArch64 Linux, this test attempts to pop a thread plan when
38+
# we only have the base plan remaining. Skip it until we can figure out
39+
# the bug this is exposing.
40+
@skipIf(oslist=["linux"], archs=["arm", "aarch64"])
3741
def test_OneTargetOneDebugger(self):
3842
self.do_test(True, True)
3943

@@ -50,11 +54,6 @@ def test_OneTargetTwoDebuggers(self):
5054
self.do_test(True, False)
5155

5256
def do_test(self, one_target, one_debugger):
53-
# Here to debug flakiness on Arm, remove later!
54-
log_cmd_result = lldb.SBCommandReturnObject()
55-
interp = self.dbg.GetCommandInterpreter()
56-
interp.HandleCommand("log enable lldb step", log_cmd_result)
57-
5857
# Make sure that if we have one target, and we run, then
5958
# change the binary and rerun, the binary (and any .o files
6059
# if using dwarf in .o file debugging) get removed from the

0 commit comments

Comments
 (0)