mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Python synthetic children:
- you can now define a Python class as a synthetic children producer for a type
the class must adhere to this "interface":
def __init__(self, valobj, dict):
def get_child_at_index(self, index):
def get_child_index(self, name):
then using type synth add -l className typeName
(e.g. type synth add -l fooSynthProvider foo)
(This is still WIP with lots to be added)
A small test case is available also as reference
llvm-svn: 135865
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
// C++ Includes
|
||||
// Other libraries and framework includes
|
||||
// Project includes
|
||||
|
||||
#include "lldb/Core/Debugger.h"
|
||||
|
||||
#include "lldb/Interpreter/Args.h"
|
||||
|
||||
#include "lldb/Interpreter/CommandReturnObject.h"
|
||||
@@ -54,6 +57,8 @@ CommandObjectScript::ExecuteRawCommandString
|
||||
result.SetStatus (eReturnStatusFailed);
|
||||
}
|
||||
|
||||
Debugger::Formatting::ForceUpdate(); // script might change Python code we use for formatting.. make sure we keep up to date with it
|
||||
|
||||
if (command == NULL || command[0] == '\0') {
|
||||
script_interpreter->ExecuteInterpreterLoop ();
|
||||
result.SetStatus (eReturnStatusSuccessFinishNoResult);
|
||||
|
||||
Reference in New Issue
Block a user