projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eccdbde
)
When resetting the number of children on a ValueObject, also clear the existing child...
author
Enrico Granata
<egranata@apple.com>
Wed, 30 Jul 2014 21:23:55 +0000
(21:23 +0000)
committer
Enrico Granata
<egranata@apple.com>
Wed, 30 Jul 2014 21:23:55 +0000
(21:23 +0000)
llvm-svn: 214341
lldb/include/lldb/Core/ValueObject.h
patch
|
blob
|
history
diff --git
a/lldb/include/lldb/Core/ValueObject.h
b/lldb/include/lldb/Core/ValueObject.h
index 3d133efab3bf63484ed4baf29d927118527d8559..2308f9ba95e85c1e2079d2bd443a310ef2868947 100644
(file)
--- a/
lldb/include/lldb/Core/ValueObject.h
+++ b/
lldb/include/lldb/Core/ValueObject.h
@@
-968,7
+968,7
@@
protected:
void
SetChildrenCount (size_t count)
{
-
m_children_count = count
;
+
Clear(count)
;
}
size_t
@@
-978,10
+978,10
@@
protected:
}
void
- Clear()
+ Clear(
size_t new_count = 0
)
{
- m_children_count = 0;
Mutex::Locker locker(m_mutex);
+ m_children_count = new_count;
m_children.clear();
}