mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
BeefPerf '%p' support
This commit is contained in:
parent
f750d44d8d
commit
149d5f22ed
5 changed files with 43 additions and 3 deletions
|
@ -430,6 +430,11 @@ void BpCmdTarget::Enter(const char* name, va_list args)
|
|||
intptr val = va_arg(args, intptr);
|
||||
paramSize += 4; // int32
|
||||
}
|
||||
else if (nextC == 'p')
|
||||
{
|
||||
intptr val = va_arg(args, intptr);
|
||||
paramSize += 8; // int64
|
||||
}
|
||||
else if (nextC == 's')
|
||||
{
|
||||
const char* str = ToStrPtr(va_arg(args, char*));
|
||||
|
@ -488,6 +493,10 @@ void BpCmdTarget::Enter(const char* name, va_list args)
|
|||
{
|
||||
BPCMD_MEMBER(int32) = (int32)va_arg(args, intptr);
|
||||
}
|
||||
else if (nextC == 'p')
|
||||
{
|
||||
BPCMD_MEMBER(int64) = (int64)va_arg(args, intptr);
|
||||
}
|
||||
else if (nextC == 's')
|
||||
{
|
||||
const char* str = ToStrPtr(va_arg(args, char*));
|
||||
|
@ -1120,6 +1129,10 @@ void BpManager::ThreadProc()
|
|||
{
|
||||
zoneName->mSize += 4;
|
||||
}
|
||||
else if (nextC == 'p')
|
||||
{
|
||||
zoneName->mSize += 8;
|
||||
}
|
||||
else if (nextC == 's')
|
||||
{
|
||||
isDyn = true;
|
||||
|
@ -1175,6 +1188,10 @@ void BpManager::ThreadProc()
|
|||
{
|
||||
checkDataIn += 4;
|
||||
}
|
||||
else if (nextC == 'p')
|
||||
{
|
||||
checkDataIn += 8;
|
||||
}
|
||||
else if (nextC == 's')
|
||||
{
|
||||
int len = (int)strlen((const char*)checkDataIn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue