Fix the run locker setting for async launches that don't stop at the
authorJim Ingham <jingham@apple.com>
Wed, 1 Mar 2023 01:14:46 +0000 (17:14 -0800)
committerJim Ingham <jingham@apple.com>
Wed, 1 Mar 2023 01:34:49 +0000 (17:34 -0800)
commita92f7832f35c6c4792d8693e724c19802da75b36
tree5f5923b4d91e2be659aa6bf4ca739947dd6618ab
parent740e2e908ca49118a6e1f27e380dbb3665a99cc8
Fix the run locker setting for async launches that don't stop at the
initial stop.  The code was using PrivateResume when it should have
used Resume.

This was allowing expression evaluation while the target was running,
and though that was caught a litle later on, we should never have gotten
that far.  To make sure that this is caught immediately I made an error
SBValue when this happens, and test that we get this error.

Differential Revision: https://reviews.llvm.org/D144665
lldb/source/API/SBFrame.cpp
lldb/source/API/SBTarget.cpp
lldb/source/Target/Target.cpp
lldb/test/API/python_api/run_locker/Makefile [new file with mode: 0644]
lldb/test/API/python_api/run_locker/TestRunLocker.py [new file with mode: 0644]
lldb/test/API/python_api/run_locker/main.c [new file with mode: 0644]