mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
Forgot to write out the NULL terminator when putting C string value into
a data using DataEncoder. Added DataEncoder to the lldb-forward.h file. llvm-svn: 138950
This commit is contained in:
@@ -62,6 +62,7 @@ class ConstString;
|
||||
class DWARFCallFrameInfo;
|
||||
class DWARFExpression;
|
||||
class DataBuffer;
|
||||
class DataEncoder;
|
||||
class DataExtractor;
|
||||
class Debugger;
|
||||
class Declaration;
|
||||
|
||||
@@ -356,6 +356,6 @@ uint32_t
|
||||
DataEncoder::PutCString (uint32_t offset, const char *cstr)
|
||||
{
|
||||
if (cstr)
|
||||
return PutData (offset, cstr, strlen(cstr));
|
||||
return PutData (offset, cstr, strlen(cstr) + 1);
|
||||
return UINT32_MAX;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user