[Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings
Ilia K
ki.stfu at gmail.com
Thu Feb 26 09:08:41 PST 2015
In http://reviews.llvm.org/D7553#130463, @zturner wrote:
> I think i missed the context, was just responding from the middle of the
> thread. What are you trying to do exactly? (The review doesn't display
> nicely on mobile, so it's hard for me to read right now)
You and @vharron adviced to use lldb_private::StringStream, but I can't find it in lldb. Instead, I found a StreamString. It was a typo?
And how I can get a truncated string from StreamString? I can do the following but it looks bad:
... prepare StreamString strm ...
std::string str = strm.str();
str.resize(MAX_LEN);
strcpy(dst, str.c_str());
http://reviews.llvm.org/D7553
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the lldb-commits
mailing list