forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 341
[lldb][Format] Display only the inlined Swift frame name in backtraces if available #10786
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
Open
charles-zablit
wants to merge
6
commits into
swift/release/6.2
Choose a base branch
from
charles-zablit/lldb/remove-inlined-format
base: swift/release/6.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
458258f
[lldb][Format] Display only the inlined Swift frame name in backtrace…
charles-zablit 3cabdf9
remove redundant call to GetName
charles-zablit 8bbf331
revert change to Mangled.cpp
charles-zablit cf17b80
Revert "revert change to Mangled.cpp"
charles-zablit c6b8ffa
revert to using eTypeName
charles-zablit 99dd438
mark tests as failing on linux and windows
charles-zablit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
lldb/test/Shell/Swift/inlined-function-name-backtrace.test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Test Swift function name printing in backtraces. | ||
|
||
# XFAIL: !system-darwin | ||
# RUN: split-file %s %t | ||
# RUN: %target-swiftc -g -O %t/main.swift -o %t.out | ||
# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \ | ||
# RUN: | FileCheck %s | ||
|
||
#--- main.swift | ||
@inline(never) | ||
func baz(_ a: Int) -> Int { | ||
return a * 2 | ||
} | ||
|
||
@inline(__always) | ||
func foo(_ a: Int, _ b: Int) -> Int { | ||
return a * b * baz(a) | ||
} | ||
|
||
func bar() { | ||
let baz = foo(4, 5) | ||
} | ||
|
||
bar() | ||
|
||
#--- commands.input | ||
b baz | ||
|
||
run | ||
bt | ||
|
||
# CHECK: `baz(a=Swift.Int @ scalar) | ||
# CHECK: `[inlined] foo(a=Swift.Int @ scalar, b=Swift.Int @ scalar) | ||
# CHECK: `[inlined] bar() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Sorry for the back and forth, but now that we merged #10789 into 6.2, we can remove this