diff options
author | Jim Ingham <jingham@apple.com> | 2018-10-16 21:58:40 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2018-10-16 21:58:40 +0000 |
commit | b1ecc3cac29bdae5469e9610a1ff66f8531a503c (patch) | |
tree | 751f36f01bfa8eda4e6eb963c57fd0eb8f46d1f9 /lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c | |
parent | d33f6e73e148b0a257facb81f100b1e731e0c910 (diff) | |
download | bcm5719-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.c | 9 |
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; +} |