This reverts commit 3bf96b0329.
It causes crashes as reported in PR52257 and a few other places. A reproducer is bundled with this commit to verify any fix forward. The original test is left in place, but marked XFAIL as it now produces the wrong result.
Reviewed By: teemperor
Differential Revision: https://reviews.llvm.org/D113449
19 lines
455 B
Python
19 lines
455 B
Python
"""
|
|
Verify that LLDB doesn't crash during expression evaluation.
|
|
"""
|
|
|
|
import lldb
|
|
from lldbsuite.test.decorators import *
|
|
from lldbsuite.test.lldbtest import *
|
|
from lldbsuite.test import lldbutil
|
|
|
|
|
|
class ExprCrashTestCase(TestBase):
|
|
|
|
mydir = TestBase.compute_mydir(__file__)
|
|
|
|
def test_pr52257(self):
|
|
self.build()
|
|
self.createTestTarget()
|
|
self.expect_expr("b", result_type="B", result_children=[ValueCheck(name="tag_set_")])
|