diff options
Diffstat (limited to 'lldb/test/Shell/Driver/Inputs')
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/.lldbinit | 2 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/Print0.in | 1 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/Print2.in | 1 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/Print4.in | 1 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/Print6.in | 1 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/convenience.in | 9 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/hello.c | 3 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/hello.cpp | 11 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/process_attach_pid.in | 2 | ||||
-rw-r--r-- | lldb/test/Shell/Driver/Inputs/syntax_error.py | 1 |
10 files changed, 32 insertions, 0 deletions
diff --git a/lldb/test/Shell/Driver/Inputs/.lldbinit b/lldb/test/Shell/Driver/Inputs/.lldbinit new file mode 100644 index 00000000000..7628917d324 --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/.lldbinit @@ -0,0 +1,2 @@ +settings set -f frame-format "bogus" +command script import syntax_error.py diff --git a/lldb/test/Shell/Driver/Inputs/Print0.in b/lldb/test/Shell/Driver/Inputs/Print0.in new file mode 100644 index 00000000000..cb545cc15ab --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/Print0.in @@ -0,0 +1 @@ +expr 0 diff --git a/lldb/test/Shell/Driver/Inputs/Print2.in b/lldb/test/Shell/Driver/Inputs/Print2.in new file mode 100644 index 00000000000..f51389a02a0 --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/Print2.in @@ -0,0 +1 @@ +expr 2 diff --git a/lldb/test/Shell/Driver/Inputs/Print4.in b/lldb/test/Shell/Driver/Inputs/Print4.in new file mode 100644 index 00000000000..a2d49f30b99 --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/Print4.in @@ -0,0 +1 @@ +expr 4 diff --git a/lldb/test/Shell/Driver/Inputs/Print6.in b/lldb/test/Shell/Driver/Inputs/Print6.in new file mode 100644 index 00000000000..dee6212b87c --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/Print6.in @@ -0,0 +1 @@ +expr 6 diff --git a/lldb/test/Shell/Driver/Inputs/convenience.in b/lldb/test/Shell/Driver/Inputs/convenience.in new file mode 100644 index 00000000000..6d5603c4351 --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/convenience.in @@ -0,0 +1,9 @@ +breakpoint set -f hello.cpp -p Hello +run +script print(lldb.debugger) +script print(lldb.target) +script print(lldb.process) +script print(lldb.thread.GetStopDescription(100)) +script lldb.frame.GetLineEntry().GetLine() +script lldb.frame.GetLineEntry().GetFileSpec().GetFilename() +script lldb.frame.GetFunctionName() diff --git a/lldb/test/Shell/Driver/Inputs/hello.c b/lldb/test/Shell/Driver/Inputs/hello.c new file mode 100644 index 00000000000..03b2213bb9a --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/hello.c @@ -0,0 +1,3 @@ +int main(void) { + return 0; +} diff --git a/lldb/test/Shell/Driver/Inputs/hello.cpp b/lldb/test/Shell/Driver/Inputs/hello.cpp new file mode 100644 index 00000000000..1ec0677aeb2 --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/hello.cpp @@ -0,0 +1,11 @@ +// The build.py script always runs the compiler in C++ mode, regardless of the +// file extension. This results in mangled names presented to the linker which +// in turn cannot find the printf symbol. +extern "C" { +int printf(const char *format, ...); + +int main(int argc, char **argv) { + printf("Hello World\n"); + return 0; +} +} diff --git a/lldb/test/Shell/Driver/Inputs/process_attach_pid.in b/lldb/test/Shell/Driver/Inputs/process_attach_pid.in new file mode 100644 index 00000000000..3d17ceee99e --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/process_attach_pid.in @@ -0,0 +1,2 @@ +process attach --pid + diff --git a/lldb/test/Shell/Driver/Inputs/syntax_error.py b/lldb/test/Shell/Driver/Inputs/syntax_error.py new file mode 100644 index 00000000000..587b8043dec --- /dev/null +++ b/lldb/test/Shell/Driver/Inputs/syntax_error.py @@ -0,0 +1 @@ +prlnt("foo") |