Files
clang-p2996/lldb/test/Shell/Unwind/thread-step-out-ret-addr-check.test
Jonas Devlieghere 61d5b0e663 [lldb/Driver] Exit with a non-zero exit code in case of error in batch mode.
We have the option to stop running commands in batch mode when an error
occurs. When that happens we should exit the driver with a non-zero exit
code.

Differential revision: https://reviews.llvm.org/D78825
2020-05-05 11:01:44 -07:00

19 lines
608 B
Plaintext

# Test that `thread step-out` fails when the "return address"
# points to non-executable memory.
# REQUIRES: target-x86_64
# UNSUPPORTED: system-windows
# RUN: %clang_host %p/Inputs/call-asm.c -x assembler-with-cpp %p/Inputs/thread-step-out-ret-addr-check.s -o %t
# RUN: not %lldb %t -s %s -b 2>&1 | FileCheck %s
breakpoint set -n nonstandard_stub
# CHECK: Breakpoint 1: where = {{.*}}`nonstandard_stub
process launch
# CHECK: stop reason = breakpoint 1.1
thread step-out
# CHECK: Could not create return address breakpoint.
# CHECK: Return address (0x{{[a-f0-9]*}}) did not point to executable memory.