printing std::string in lldb
printing std::string in lldb
- Subject: printing std::string in lldb
- From: Dmitry Markman <email@hidden>
- Date: Fri, 24 Jun 2011 01:57:29 -0400
Hi I'm trying to print std::string in lldb
here is a simple program:
#include <iostream>
int main (int argc, const char * argv[]) {
std::string s("Hello, World!"); std::cout << s << std::endl; return 0; }
I set Xcode 4 project to use LLVM 2 compiler and set executable to use lldb
I set breakpoint at the line return 0
lldb stopped, but when I'm trying to evaluate _expression_ (in console):
po s[0] or po s.c_str()
lldb errors out: Error [IRForTarget]: Call to a function '_ZNSt18basic_string<char>ixEm' that is not present in the target error: _expression_ can't be interpreted or run for s[0]
Error [IRForTarget]: Call to a function '_ZNSt18basic_string<char>5c_strEv' that is not present in the target error: _expression_ can't be interpreted or run
for c_str()
so what I'm doing wrong?
thanks
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden