mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
8666b9057f
Explicitly consider the libraries reported on the initial rendezvous breakpoint hit added. This is necessary on FreeBSD since the dynamic loader issues only a single 'consistent' state rendezvous breakpoint hit for all the libraries present in DT_NEEDED. It is also helpful on Linux where it ensures that ld-linux is considered loaded as well as the shared system libraries reported afterwards. Reenable memory maps on FreeBSD since this fixed the issue triggered by them. Differential Revision: https://reviews.llvm.org/D92187
19 lines
608 B
Plaintext
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.
|