| 607 | } |
| 608 | |
| 609 | void BpThreadInfo::SetThreadName(const char* name) |
| 610 | { |
| 611 | int len = (int)strlen(name); |
| 612 | if (mThreadName == NULL) |
| 613 | { |
| 614 | mThreadName = (char*)BpManager::Get()->AllocBytes(len + 1); |
| 615 | memcpy(mThreadName, name, len + 1); |
| 616 | } |
| 617 | |
| 618 | BPCMD_PREPARE; |
| 619 | |
| 620 | BPCMD_RESERVE(1 + len + 1); |
| 621 | BPCMD_MEMBER(uint8) = BpCmd_ThreadName; |
| 622 | BPCMD_MEMCPY(name, len + 1); |
| 623 | BPCMD_END(); |
| 624 | } |
| 625 | |
| 626 | void BpThreadInfo::RemoveThread() |
| 627 | { |
no test coverage detected