[lldb/Plugins] Add ScriptedProcess::GetCapabilities affordance (NFC)
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 31 Jan 2023 00:53:39 +0000 (16:53 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 4 Mar 2023 03:33:02 +0000 (19:33 -0800)
commit2d5348be2561402e284e26a9adf3a2e28e70c1f5
tree1b4c4fd7fffe8b22da6b789a5c102b974f908550
parente6cac17b563f2e2bc7d04347b0b40a9fe12334c9
[lldb/Plugins] Add ScriptedProcess::GetCapabilities affordance (NFC)

This patch introduces a new method to the Scripted Process interface,
GetCapabilities.

This returns a dictionary that contains a list of flags that the
ScriptedProcess instance supports. This can be used for instance, to
force symbol lookup, when loading dynamic libraries in the scripted process.

Differential Revision: https://reviews.llvm.org/D142059

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/examples/python/scripted_process/scripted_process.py
lldb/include/lldb/Interpreter/ScriptedProcessInterface.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h