summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBValue.i
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-05-08 21:25:06 +0000
committerEnrico Granata <egranata@apple.com>2012-05-08 21:25:06 +0000
commit07a4ac22edd3f08cb460a651a2318d9bf5090ba1 (patch)
treea93b477d2a4d4e7b9e2e396229cbe3721a410c20 /lldb/scripts/Python/interface/SBValue.i
parent8d2a77de631dad32cb462e85f5cc935418cbf48d (diff)
downloadbcm5719-llvm-07a4ac22edd3f08cb460a651a2318d9bf5090ba1.tar.gz
bcm5719-llvm-07a4ac22edd3f08cb460a651a2318d9bf5090ba1.zip
<rdar://problem/11239650> Fixing a bug where the SetValueFromCString() method failed to operate on dynamic values. The fix consists in making the set operation fall through to the parent. We only actually allow this if the dynamic value is at a 0-offset from the parent, or the new value is 0. Other scenarios would need agreement on the actual meaning of the set operation (do we keep offsetting? do we just assume the user knows what they are doing?) so we prevent them, and let the expression parser deal with the complexity
llvm-svn: 156422
Diffstat (limited to 'lldb/scripts/Python/interface/SBValue.i')
-rw-r--r--lldb/scripts/Python/interface/SBValue.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i
index d529e656099..9b9fd529de8 100644
--- a/lldb/scripts/Python/interface/SBValue.i
+++ b/lldb/scripts/Python/interface/SBValue.i
@@ -139,6 +139,9 @@ public:
bool
SetValueFromCString (const char *value_str);
+ bool
+ SetValueFromCString (const char *value_str, lldb::SBError& error);
+
lldb::SBTypeFormat
GetTypeFormat ();
OpenPOWER on IntegriCloud