MCPcopy Create free account
hub / github.com/beefytech/Beef / CheckNeedsSRetArgument

Method CheckNeedsSRetArgument

IDEHelper/WinDebugger.cpp:4367–4384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4365}
4366
4367bool WinDebugger::CheckNeedsSRetArgument(DbgType* retType)
4368{
4369 if (!retType->IsCompositeType())
4370 return false;
4371
4372 if (retType->GetByteCount() == 0)
4373 return false;
4374
4375 //TODO: Change when we change the calling convention
4376 if (retType->GetLanguage() == DbgLanguage_Beef)
4377 return true;
4378
4379 int retSize = retType->GetByteCount();
4380 //TODO: Check for 'POD' type?
4381 if ((retSize == 1) || (retSize == 2) || (retSize == 4) || (retSize == sizeof(addr_target)))
4382 return false;
4383 return true;
4384}
4385
4386DbgTypedValue WinDebugger::ReadReturnValue(CPURegisters* registers, DbgType* type)
4387{

Callers 1

CreateCallMethod · 0.80

Calls 3

IsCompositeTypeMethod · 0.80
GetByteCountMethod · 0.80
GetLanguageMethod · 0.45

Tested by

no test coverage detected