[3.13] gh-123967: Fix faulthandler for trampoline frames (GH-127329) (#127362)

gh-123967: Fix faulthandler for trampoline frames (GH-127329)

If the top-most frame is a trampoline frame, skip it.
(cherry picked from commit 58e334e1431b2ed6b70ee42501ea73e08084e769)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 files changed