summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2018-10-16 21:58:40 +0000
committerJim Ingham <jingham@apple.com>2018-10-16 21:58:40 +0000
commitb1ecc3cac29bdae5469e9610a1ff66f8531a503c (patch)
tree751f36f01bfa8eda4e6eb963c57fd0eb8f46d1f9 /lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c
parentd33f6e73e148b0a257facb81f100b1e731e0c910 (diff)
downloadbcm5719-llvm-b1ecc3cac29bdae5469e9610a1ff66f8531a503c.tar.gz
bcm5719-llvm-b1ecc3cac29bdae5469e9610a1ff66f8531a503c.zip
Return a named error in the result object of an expression with no result
Before we returned an error that was not exposed in the SB API and no useful error message. This change returns eExpressionProducedNoResult and an appropriate error string. <rdar://problem/44539514> Differential Revision: https://reviews.llvm.org/D53309 llvm-svn: 344647
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c b/lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c
new file mode 100644
index 00000000000..8d4e0c4f7be
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int
+main()
+{
+ int test_var = 10;
+ printf ("Set a breakpoint here: %d.\n", test_var);
+ return 0;
+}
OpenPOWER on IntegriCloud