-
Notifications
You must be signed in to change notification settings - Fork 342
[lldb] Support plain ObjC names in LLDBTypeInfoProvider #9320
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
Changes from all commits
69f8ffb
5e33cc5
0c302ee
bdd73c3
4412359
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SWIFT_SOURCES := main.swift | ||
|
||
include Makefile.rules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import lldb | ||
from lldbsuite.test.lldbtest import * | ||
from lldbsuite.test.decorators import * | ||
import lldbsuite.test.lldbutil as lldbutil | ||
|
||
|
||
class TestCase(TestBase): | ||
@swiftTest | ||
@skipUnlessFoundation | ||
def test(self): | ||
"""Print an ObjC derived object without using the AST context.""" | ||
self.build() | ||
lldbutil.run_to_source_breakpoint( | ||
self, "// break here", lldb.SBFileSpec("main.swift") | ||
) | ||
self.runCmd("settings set symbols.swift-enable-ast-context false") | ||
self.expect("v", substrs=["num = 15"]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Usually I prefer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it would be nice to have a policy on this. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are other instances, I'll make a follow up change to catch them all. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Foundation | ||
|
||
class C: NSObject { | ||
var num: Int = 15 | ||
} | ||
|
||
func main() { | ||
let c = C() | ||
// break here | ||
print(c) | ||
} | ||
|
||
main() |
Uh oh!
There was an error while loading. Please reload this page.