xref: /llvm-project/lldb/test/Shell/Driver/TestPageZeroRead.test (revision 0f02dd34f22650d8af0070e7ad21632525e33da8)
1# REQUIRES: system-darwin
2# Ensure that the read from memory command doesn't try and read from page zero.
3# RUN: %clang_host %p/Inputs/hello.c -g -o a.out
4# RUN: %lldb -b a.out -o 'settings set interpreter.stop-command-source-on-error false' -s %s 2>&1 | FileCheck %s
5x 0
6# CHECK: error: error reading data from section __PAGEZERO
7