summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-13 19:18:16 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-13 19:18:16 +0000
commit9e046f02e34fbb93eea1bd8b4136da7fd8d06612 (patch)
treea5fcd26ec570e8a3262ab7ea7e312930e9014cdd /lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c
parent3bea50aeb35704798aefa9acbb8973c7864f3732 (diff)
downloadbcm5719-llvm-9e046f02e34fbb93eea1bd8b4136da7fd8d06612.tar.gz
bcm5719-llvm-9e046f02e34fbb93eea1bd8b4136da7fd8d06612.zip
Add GDB remote packet reproducer.
llvm-svn: 346780
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c b/lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c
new file mode 100644
index 00000000000..a4585b380ca
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c
@@ -0,0 +1,19 @@
+//===-- main.c --------------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <stdio.h>
+
+void foo() {
+ printf("testing\n");
+}
+
+int main (int argc, char const *argv[]) {
+ foo();
+ return 0;
+}
OpenPOWER on IntegriCloud