[Lldb-commits] [PATCH] D94937: [lldb] change SBStructuredData GetStringValue signature
Pedro Tammela via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 18 16:38:11 PST 2021
tammela created this revision.
tammela requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
This patch changes the GetStringValue method on the SBStructuredData
class to return a `const char *`.
This change allows the use of the method on the Lua interpreter.
The auto-generated Lua binding can't handle `char *` arguments
properly. That's because it forces the method call with a `char *` like
Lua object.
This means that to retrieve the string value an operation would need to write to an
internal Lua string, instead of using the Lua C API.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94937
Files:
lldb/bindings/interface/SBStructuredData.i
lldb/examples/python/in_call_stack.py
lldb/include/lldb/API/SBStructuredData.h
lldb/include/lldb/Core/StructuredDataImpl.h
lldb/packages/Python/lldbsuite/test/decorators.py
lldb/source/API/SBStructuredData.cpp
lldb/test/API/commands/platform/basic/TestPlatformPython.py
lldb/test/API/commands/target/stop-hooks/stop_hook.py
lldb/test/API/functionalities/breakpoint/breakpoint_command/bktptcmd.py
lldb/test/API/functionalities/breakpoint/scripted_bkpt/resolver.py
lldb/test/API/functionalities/breakpoint/serialize/TestBreakpointSerialization.py
lldb/test/API/functionalities/step_scripted/Steps.py
lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_function_callback.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94937.317438.patch
Type: text/x-patch
Size: 11954 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210119/3a4ab08a/attachment.bin>
More information about the lldb-commits
mailing list