Files
clang-p2996/lldb/test/API/commands/expression/result_numbering/main.c
Jim Ingham 67d67ebe8f Internal expressions shouldn't increment the result variable numbering.
There an option: EvaluateExpressionOptions::SetResultIsInternal to indicate
whether the result number should be returned to the pool or not.  It
got broken when the PersistentExpressionState was refactored.

This fixes the issue and provides a test of the behavior.

Differential Revision: https://reviews.llvm.org/D76532
2020-03-23 13:30:37 -07:00

19 lines
242 B
C

#include <stdio.h>
int
call_me(int input)
{
return input;
}
int
main()
{
int value = call_me(0); // Set a breakpoint here
while (value < 10)
{
printf("Add conditions to this breakpoint: %d.\n", value++);
}
return 0;
}