[lldb/Python] Make use of PythonObject and PythonFormat in callbacks (NFC)
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 18 Nov 2022 07:55:52 +0000 (23:55 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 18 Nov 2022 21:56:48 +0000 (13:56 -0800)
commit288843a161f71148d7028e5153038006dd87e363
treeb1127b4e404079a0488c659084d23954e52f0c85
parent7c96f61aaa4c8297e5cd1b96c6985f491e5f034f
[lldb/Python] Make use of PythonObject and PythonFormat in callbacks (NFC)

This patch extends the template specialization of PythonFormat structs
and makes use of the pre-existing PythonObject class to format arguments
and pass them to the right method, before calling it.

This is a preparatory patch to merge PythonFormat with SWIGPythonBridge's
GetPythonValueFormatString methods.

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp