[Lldb-commits] [PATCH] Add SBArgs to the public interface
Zachary Turner
zturner at google.com
Wed Mar 11 13:53:34 PDT 2015
Hi granata.enrico,
I found a bug in SetCommandString() which I plan to fix in a separate patch. I sat down to write a test for the bug and realized there was no SBArgs. So this adds SBArgs so that we can make sure this kind of thing doesn't happen again in the future. Here's an output of my command session verifying that it works as expected.
d:\src\llvmbuild\ninja>bin\lldb
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> import lldb
>>> args = lldb.SBArgs()
>>> args.SetCommandString("This is a test")
>>> args.GetArgumentCount()
4L
>>> args.GetArgumentAtIndex(2)
'a'
>>> args.GetArgumentAtIndex(3)
'test'
>>> quit
(lldb) quit
http://reviews.llvm.org/D8265
Files:
include/lldb/API/SBArgs.h
include/lldb/API/SBDefines.h
scripts/Python/interface/SBArgs.i
scripts/lldb.swig
source/API/CMakeLists.txt
source/API/SBArgs.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8265.21761.patch
Type: text/x-patch
Size: 6031 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150311/89f81ef7/attachment.bin>
More information about the lldb-commits
mailing list