summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/lldb/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c')
-rw-r--r--gnu/llvm/lldb/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/llvm/lldb/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c b/gnu/llvm/lldb/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c
new file mode 100644
index 00000000000..38ea7be6bfc
--- /dev/null
+++ b/gnu/llvm/lldb/packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c
@@ -0,0 +1,8 @@
+__attribute__((section("__codesection")))
+int f(int a) {
+ return a + 1; // Set break point at this line.
+}
+
+int main() {
+ return f(10);
+}