Skip to content

Conversation

@augusto2112
Copy link

No description provided.

@augusto2112
Copy link
Author

@swift-ci test

The `transparent_stepping` attribute is intended as a hint for
debuggers that this function itself is not interesting, but it calls a
function that might be.  So, when stepping in arrives at a function
with this attribute, debuggers should transparently step-in through it
into the functions called by the annotated function (but not by
subsequent calls made by those functions), stopping at the first one its
normal rules for whether to stop says to stop at - or stepping out again
if none qualify. Also, when stepping out arrives at a function with this
attribute, the debugger should continue stepping out to its caller.

Differential Revision: https://reviews.llvm.org/D146595

(cherry picked from commit 115648d)
Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

We may rename the clang attribute later, but for now, this LGTM.

This patch adds support for the DW_AT_trampoline attribute whose value
is a boolean. Which is a "generic trampoline". Stepping into a generic
trampoline by default will step through the function, checking
at every branch, until we stop in a function which makes sense to stop
at (a function with debug info, which isn't a trampoline, for example).

Differential Revision: https://reviews.llvm.org/D147292

(cherry picked from commit 4a8e545)
@augusto2112 augusto2112 force-pushed the cherry-pick-trampoline-support branch from 8ce80f1 to 2af4818 Compare March 31, 2023 20:07
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test macOS

3 similar comments
@augusto2112
Copy link
Author

@swift-ci test macOS

@augusto2112
Copy link
Author

@swift-ci test macOS

@augusto2112
Copy link
Author

@swift-ci test macOS

@augusto2112
Copy link
Author

Swift asan validation tests timed out:

Timed Out Tests (3):
  lldb-api :: functionalities/asan/swift/TestAsanSwift.py
  lldb-api :: functionalities/tsan/swift-access-race/TestTsanSwiftAccessRace.py
  lldb-api :: functionalities/tsan/swift/TestTsanSwift.py

@augusto2112
Copy link
Author

@swift-ci test macOS

@augusto2112 augusto2112 merged commit b88dc63 into swiftlang:stable/20221013 Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants