summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2019-10-01 00:47:25 +0000
committerJim Ingham <jingham@apple.com>2019-10-01 00:47:25 +0000
commit58c3235ee976e577ab183a3058e804f4ac1ae027 (patch)
treeca295584f2be50ea9534b189b879dd90b7e5d75d /lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c
parent3b69bcc363d7e5b518dc673203e6ff88cd2498cb (diff)
downloadbcm5719-llvm-58c3235ee976e577ab183a3058e804f4ac1ae027.tar.gz
bcm5719-llvm-58c3235ee976e577ab183a3058e804f4ac1ae027.zip
Allow the internal-state-thread free access to the TargetAPI mutex.
It is always doing work on behalf of another thread that presumably has the mutex, so if it is calling SB API's it should have free access to the mutex. This is the same decision as we made earlier with the process RunLock. Differential Revision: https://reviews.llvm.org/D68174 llvm-svn: 373280
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c b/lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c
index 88b3c17125d..bfd8a35d556 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/main.c
@@ -1,7 +1,10 @@
#include <stdio.h>
void foo() {
- printf("Set a breakpoint here.\n");
+ int foo = 10;
+ printf("%d\n", foo); // Set a breakpoint here.
+ foo = 20;
+ printf("%d\n", foo);
}
int main() {
OpenPOWER on IntegriCloud