summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObjectList.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-06-29 22:09:02 +0000
committerGreg Clayton <gclayton@apple.com>2011-06-29 22:09:02 +0000
commitdea8cb4fe314fb772706e033e50c3258210007f5 (patch)
treef48ad3ccc7229cc40cccc815e20e1b64fd8c01ea /lldb/source/Core/ValueObjectList.cpp
parent1c2d4f2feaf680df14b0a6a2f23e2d96589ac598 (diff)
downloadbcm5719-llvm-dea8cb4fe314fb772706e033e50c3258210007f5.tar.gz
bcm5719-llvm-dea8cb4fe314fb772706e033e50c3258210007f5.zip
Added support for finding and global variables in the SBTarget and SBModule
level in the public API. Also modified the ValueObject values to be able to display global variables without having a valid running process. The globals will read themselves from the object file section data if there is no process, and from the process if there is one. Also fixed an issue where modifications for dynamic types could cause child values of ValueObjects to not show up if the value was unable to evaluate itself (children of NULL pointer objects). llvm-svn: 134102
Diffstat (limited to 'lldb/source/Core/ValueObjectList.cpp')
-rw-r--r--lldb/source/Core/ValueObjectList.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Core/ValueObjectList.cpp b/lldb/source/Core/ValueObjectList.cpp
index 8913d4da18d..f732a698ee5 100644
--- a/lldb/source/Core/ValueObjectList.cpp
+++ b/lldb/source/Core/ValueObjectList.cpp
@@ -51,6 +51,16 @@ ValueObjectList::Append (const ValueObjectSP &val_obj_sp)
m_value_objects.push_back(val_obj_sp);
}
+void
+ValueObjectList::Append (const ValueObjectList &valobj_list)
+{
+ std::copy(valobj_list.m_value_objects.begin(), // source begin
+ valobj_list.m_value_objects.end(), // source end
+ back_inserter(m_value_objects)); // destination
+
+}
+
+
uint32_t
ValueObjectList::GetSize() const
{
OpenPOWER on IntegriCloud