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