2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class TestCase(TestBase
):
10 lldbutil
.run_to_source_breakpoint(
11 self
, "// break here", lldb
.SBFileSpec("main.c")
14 self
.expect_expr("$__lldb_expr_result", result_type
="int", result_value
="11")
15 self
.expect_expr("$foo", result_type
="int", result_value
="12")
16 self
.expect_expr("$R0", result_type
="int", result_value
="13")
18 "expr int $foo = 123", error
=True, substrs
=["declaration conflicts"]
20 self
.expect_expr("$0", result_type
="int", result_value
="11")