Kernel source debugging support 1/n

- new patch token
- program debug compilation flag
- sip kernel new methods for querying bti and debug
surface size

Change-Id: Icaddd15f269c4b76efdf926f2e346aa61cbaae02
This commit is contained in:
Hoppe, Mateusz
2018-03-09 14:40:31 +01:00
committed by sys_ocldev
parent 0ef0d6fc52
commit cc6fa3d1e1
22 changed files with 356 additions and 5 deletions

View File

@@ -265,7 +265,9 @@ std::string OfflineCompiler::getStringWithinDelimiters(const std::string &src) {
start += strlen("R\"===(");
size_t size = stop - start;
std::string dst(src, start, size);
std::string dst(src, start, size + 1);
dst[size] = '\0'; // put null char at the end
return dst;
}