-
Notifications
You must be signed in to change notification settings - Fork 340
[lldb] Avoid returning a false positive error when reaching an ObjC b… #10499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb] Avoid returning a false positive error when reaching an ObjC b… #10499
Conversation
@swift-ci test |
…ase class in SwiftLanguageRuntime::GetIndexOfChildMemberWithName(). My understanding is that the loop should stop once we reach an ObjC base class, because any ivars in the base class will be children of the artificial base class child. rdar://149329166
9279a16
to
fb48ea1
Compare
@swift-ci test |
@skipUnlessDarwin | ||
@swiftTest | ||
def test(self): | ||
"""Test accessing a static member from a member function""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test accessing a static member from an ObjC inherited class's member function
?
self, 'break here', lldb.SBFileSpec('main.swift') | ||
) | ||
|
||
# dwim-print start by checking whether a member 'A' exists in 'self'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, dwim-print will fallback to expression evaluation, because A
isn't a frame variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this is the same as expression A.shared
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as the result is concerned, yes. But the code path I'm specifically checking here is the failing check for a member 'A' in self
, which would have triggered a fallback, which will assert in future versions of the test suite.
…ase class
in SwiftLanguageRuntime::GetIndexOfChildMemberWithName().
My understanding is that the loop should stop once we reach an ObjC base class, because any ivars in the base class will be children of the artificial base class child.
rdar://149329166