mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed some @ var lookups
This commit is contained in:
parent
e5de09488e
commit
570c03f25c
1 changed files with 5 additions and 3 deletions
|
@ -2203,6 +2203,8 @@ addr_target DebugTarget::GetStaticAddress(DbgVariable* dwVariable)
|
|||
|
||||
bool DebugTarget::GetValueByNameInBlock_Helper(DbgSubprogram* dwSubprogram, DbgBlock* dwBlock, String& name, WdStackFrame* stackFrame, intptr* outAddr, DbgType** outType, DbgAddrType* outAddrType)
|
||||
{
|
||||
int nameLen = (int)name.length();
|
||||
|
||||
// Checks for previous version of a local name by stripping off the '@' each time we find a match, until we don't have any @'s left
|
||||
auto _CheckName = [&](const char* localName)
|
||||
{
|
||||
|
@ -2213,6 +2215,7 @@ bool DebugTarget::GetValueByNameInBlock_Helper(DbgSubprogram* dwSubprogram, DbgB
|
|||
namePtr++;
|
||||
if (strcmp(localName, namePtr) == 0)
|
||||
{
|
||||
nameLen--;
|
||||
name.Remove(0, 1);
|
||||
}
|
||||
};
|
||||
|
@ -2261,7 +2264,6 @@ bool DebugTarget::GetValueByNameInBlock_Helper(DbgSubprogram* dwSubprogram, DbgB
|
|||
}
|
||||
};
|
||||
|
||||
int nameLen = (int)name.length();
|
||||
//for (auto variable : dwBlock->mVariables)
|
||||
for (int varIdx = (int)checkVars.size() - 1; varIdx >= 0; varIdx--)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue