[lldb-dev] [Bug 25205] New: std::string has no value
lldb-dev at lists.llvm.org
Fri Oct 16 09:55:48 PDT 2015
Bug ID: 25205
Summary: std::string has no value
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: berykubik at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 15088
C++ source with test program
std::string variables have value "None" when I access them using the Python
scripting API. They only have one child, which also has a value of None. Is
there another way to get the string value, or am I doing something wrong? I
could probably print the string into the terminal and get the result from the
command interpreter, but it would be nice to access the string directly.
I've attached a simple C++ program that demonstrates this.
I'm using LLDB 3.8 compiled from trunk. The program was compiled using clang++
with libc++ (I also tried g++ and -fstandalone-debug switch with similar
debugger = lldb.SBDebugger.Create()
target = debugger.CreateTarget("./test")
process = target.LaunchSimple(, , os.getcwd())
thread = process.GetSelectedThread()
frame = thread.GetSelectedFrame()
for var in frame.vars:
if var.name == "a":
print(var.value) # None
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev