Fixing an issue where formats would not propagate from parents to children in all cases Details follow: an SBValue has children and those are fetched along with their values Now, one calls SBValue::SetFormat() on the parent Technically, the format choices should propagate onto the children (see ValueObject::GetFormat()) But if the children values are already fetched, they won't notice the format change and won't update themselves This commit fixes that by making ValueObject::GetValueAsCString() check if any format change intervened from the previous call to the current one A test case is also added llvm-svn: 183030
14 lines
150 B
C++
14 lines
150 B
C++
struct foo
|
|
{
|
|
int X;
|
|
int Y;
|
|
foo(int a, int b) : X(a), Y(b) {}
|
|
};
|
|
|
|
int main()
|
|
{
|
|
foo f(1,2);
|
|
f.X = 4; // Set break point at this line.
|
|
return 0;
|
|
}
|