Files
clang-p2996/lldb/test/expression_command/persistent_ptr_update/main.c
Enrico Granata bb642e5456 Constant result ValueObjects are - well - constant
And they also do not have a thread/frame attached to them

That makes dynamic and synthetic values attached to them impossible to update - which, among other things, makes it impossible to properly display persistent variables of types that could have such dynamic/persistent values

Fix this by making it so that a ValueObject can control its constantness (hint: dynamic and synthetic values cannot be constant) and whether it wants to let itself be updated when an invalid thread is around

llvm-svn: 237504
2015-05-16 01:27:00 +00:00

12 lines
107 B
C

void* foo(void *p)
{
return p; // break here
}
int main() {
while (1) {
foo(0);
}
return 0;
}