[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / symbol_ondemand / breakpoint_source_regex / TestSourceTextRegexBreakpoint.py
blob8bf294bbb52b7d96b33db3fa3b6013e90fea6648
1 """
2 Test source text regex breakpoint hydrates module debug info
3 in symbol on-demand mode.
4 """
7 import lldb
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test import lldbutil
13 class TestSourceTextRegexBreakpoint(TestBase):
14 @skipIfWindows
15 def test_with_run_command(self):
16 self.build()
18 # Load symbols on-demand
19 self.runCmd("settings set symbols.load-on-demand true")
21 self.runCmd("file " + self.getBuildArtifact("a.out"), CURRENT_EXECUTABLE_SET)
23 lldbutil.run_break_set_by_source_regexp(self, "Set break point at this line.")
24 self.runCmd("run", RUN_SUCCEEDED)
26 # The stop reason of the thread should be breakpoint.
27 self.expect(
28 "thread list",
29 STOPPED_DUE_TO_BREAKPOINT,
30 substrs=["stopped", "stop reason = breakpoint"],
33 frame = self.frame()
34 self.assertTrue(frame.IsValid())
35 self.assertEqual(frame.GetLineEntry().GetFileSpec().GetFilename(), "main.cpp")
36 self.assertEqual(frame.GetLineEntry().GetLine(), 4)