[Lldb-commits] [PATCH] D57817: Add PythonBoolean type to PythonDataObjects

Tatyana Krasnukha via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 6 06:38:19 PST 2019


tatyana-krasnukha created this revision.
tatyana-krasnukha added reviewers: zturner, labath.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

When reading some settings from a Python script, getting a boolean option via `StructuredData::Object::GetAsBoolean` fails unexpectedly: `PyBool_Type` values fall to `PythonInteger` (and `StructuredData::Integer` as well). This patch adds `PythonBoolean` type to make `GetAsBoolean` working for Python.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D57817

Files:
  source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
  source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
  unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57817.185537.patch
Type: text/x-patch
Size: 5511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190206/dd06b5ad/attachment.bin>


More information about the lldb-commits mailing list