xref: /llvm-project/lldb/test/Shell/ScriptInterpreter/Python/sb_address_exception.test (revision 88591aa0ca7e4d99da353d49f91ea63e43fb55e0)
1*0800529fSJonas Devlieghere# Test that the SBAddress properties throw an exception when used outside of
2*0800529fSJonas Devlieghere# the interactive script interpreter.
3*0800529fSJonas Devlieghere#
4*0800529fSJonas Devlieghere# RUN: %lldb --script-language python -o 'command script import %S/Inputs/sbaddress.py' -o 'test' 2>&1 | FileCheck %s
5*0800529fSJonas Devlieghere# CHECK: RuntimeError: This resolves the SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command). For things like Python based commands and breakpoint callbacks use GetLoadAddress instead.
6