Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ def test_frame_var_after_stop_at_interface(self):
# Run at stop at main
lldbutil.check_breakpoint(self, bpno=1, expected_hit_count=1)

self.runCmd("settings set target.prefer-dynamic-value no-dynamic-values")

# This should display correctly.
self.expect(
"frame variable foo->_bar->_hidden_ivar",
VARIABLES_DISPLAYED_CORRECTLY,
substrs=["(NSString *)", "foo->_bar->_hidden_ivar = 0x"],
substrs=["foo->_bar->_hidden_ivar = 0x"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, this would be nicer if it were implemented using the SBAPI instead of expect. Maybe we should upstream lldbutil.check_variable from the Swift branch?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea can do that as a follow-up

)

def test_frame_var_after_stop_at_implementation(self):
Expand All @@ -54,11 +52,9 @@ def test_frame_var_after_stop_at_implementation(self):
# Run at stop at main
lldbutil.check_breakpoint(self, bpno=1, expected_hit_count=1)

self.runCmd("settings set target.prefer-dynamic-value no-dynamic-values")

# This should display correctly.
self.expect(
"frame variable foo->_bar->_hidden_ivar",
VARIABLES_DISPLAYED_CORRECTLY,
substrs=["(NSString *)", "foo->_bar->_hidden_ivar = 0x"],
substrs=["foo->_bar->_hidden_ivar = 0x"],
)
Loading