1"""
2Test lldb-dap stack trace response
3"""
4
5from lldbsuite.test.decorators import *
6import lldbdap_testcase
7
8
9class TestDAP_stackTraceMissingFunctionName(lldbdap_testcase.DAPTestCaseBase):
10    @skipIfWindows
11    def test_missingFunctionName(self):
12        """
13        Test that the stack frame without a function name is given its pc in the response.
14        """
15        program = self.getBuildArtifact("a.out")
16        self.build_and_launch(program)
17
18        self.continue_to_next_stop()
19        frame_without_function_name = self.get_stackFrames()[0]
20        self.assertEqual(frame_without_function_name["name"], "0x0000000000000000")
21