D71372 introduced: Unwind/thread-step-out-ret-addr-check.test failing on Fedora 30 Linux x86_64.
One problem is the underscored _nonstandard_stub in the .s file but not in the LLDB command:
(lldb) breakpoint set -n nonstandard_stub Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) process launch Process 21919 exited with status = 0 (0x00000000) Process 21919 launched: '/home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/test/Unwind/Output/thread-step-out-ret-addr-check.test.tmp' (x86_64) (lldb) thread step-out error: invalid thread (lldb) _
Another problem is that Fedora Linux has executable stack by default and all programs indicate non-executable stack by PT_GNU_STACK, after fixing the underscore I was getting:
(lldb) thread step-out Process 22294 exited with status = 0 (0x00000000) (lldb) _
Is the .section harmless for non-Linux platforms or will it need some conditional compilation? (#ifdef is not available in .s file)
Maybe we can just remove the underscore version, and simply use nonstandard_stub if it will work everywhere?