mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Changed some debugging logging
This commit is contained in:
parent
f0b5a4eb94
commit
592471434f
3 changed files with 12 additions and 5 deletions
|
@ -2561,7 +2561,7 @@ DbgTypedValue DbgExprEvaluator::DoLookupField(BfAstNode* targetSrc, DbgTypedValu
|
||||||
}
|
}
|
||||||
|
|
||||||
Fail("Static variable not found, may have be optimized out", targetSrc);
|
Fail("Static variable not found, may have be optimized out", targetSrc);
|
||||||
BfLogDbgExpr(" Static variable optimized out\n");
|
//BfLogDbgExpr(" Static variable optimized out\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -4776,7 +4776,7 @@ void DbgExprEvaluator::Visit(BfThisExpression* thisExpr)
|
||||||
|
|
||||||
void DbgExprEvaluator::Visit(BfIdentifierNode* identifierNode)
|
void DbgExprEvaluator::Visit(BfIdentifierNode* identifierNode)
|
||||||
{
|
{
|
||||||
BfLogDbgExpr("Visit BfIdentifierNode %s\n", identifierNode->ToString().c_str());
|
//BfLogDbgExpr("Visit BfIdentifierNode %s\n", identifierNode->ToString().c_str());
|
||||||
|
|
||||||
mResult = LookupIdentifier(identifierNode, false, NULL);
|
mResult = LookupIdentifier(identifierNode, false, NULL);
|
||||||
if (!mResult)
|
if (!mResult)
|
||||||
|
|
|
@ -5337,6 +5337,8 @@ void DbgModule::HotReplaceType(DbgType* newType)
|
||||||
DbgSubprogram* newMethod = newType->mMethodList.PopFront();
|
DbgSubprogram* newMethod = newType->mMethodList.PopFront();
|
||||||
if (!newMethod->mBlock.IsEmpty())
|
if (!newMethod->mBlock.IsEmpty())
|
||||||
{
|
{
|
||||||
|
BfLogDbg("Hot added new method %p %s Address:%p\n", newMethod, newMethod->mName, newMethod->mBlock.mLowPC);
|
||||||
|
|
||||||
newMethod->PopulateSubprogram();
|
newMethod->PopulateSubprogram();
|
||||||
|
|
||||||
auto symInfo = mDebugTarget->mSymbolMap.Get(newMethod->mBlock.mLowPC);
|
auto symInfo = mDebugTarget->mSymbolMap.Get(newMethod->mBlock.mLowPC);
|
||||||
|
@ -5524,6 +5526,8 @@ bool DbgModule::ReadCOFF(DataStream* stream, DbgModuleKind moduleKind)
|
||||||
//if (this == mDebugTarget->mTargetBinary)
|
//if (this == mDebugTarget->mTargetBinary)
|
||||||
//mMemReporter = new MemReporter();
|
//mMemReporter = new MemReporter();
|
||||||
|
|
||||||
|
BfLogDbg("DbgModule::ReadCOFF %s\n", mFilePath.c_str());
|
||||||
|
|
||||||
if (mMemReporter != NULL)
|
if (mMemReporter != NULL)
|
||||||
{
|
{
|
||||||
mMemReporter->BeginSection(StrFormat("Module: %s", mFilePath.c_str()));
|
mMemReporter->BeginSection(StrFormat("Module: %s", mFilePath.c_str()));
|
||||||
|
|
|
@ -1059,6 +1059,8 @@ void WinDebugger::HotLoad(const Array<String>& objectFiles, int hotIdx)
|
||||||
{
|
{
|
||||||
AutoCrit autoCrit(mDebugManager->mCritSect);
|
AutoCrit autoCrit(mDebugManager->mCritSect);
|
||||||
|
|
||||||
|
BfLogDbg("WinDebugger::HotLoad Start %d\n", hotIdx);
|
||||||
|
|
||||||
SetAndRestoreValue<int> prevHotIdx(mActiveHotIdx, hotIdx);
|
SetAndRestoreValue<int> prevHotIdx(mActiveHotIdx, hotIdx);
|
||||||
|
|
||||||
BF_ASSERT(mHotThreadStates.empty());
|
BF_ASSERT(mHotThreadStates.empty());
|
||||||
|
@ -1083,7 +1085,6 @@ void WinDebugger::HotLoad(const Array<String>& objectFiles, int hotIdx)
|
||||||
|
|
||||||
int startingModuleIdx = (int)mDebugTarget->mDbgModules.size();
|
int startingModuleIdx = (int)mDebugTarget->mDbgModules.size();
|
||||||
|
|
||||||
BfLogDbg("WinDebugger::HotLoad\n");
|
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
for (auto fileName : objectFiles)
|
for (auto fileName : objectFiles)
|
||||||
{
|
{
|
||||||
|
@ -5055,6 +5056,8 @@ bool WinDebugger::RollBackStackFrame(CPURegisters* registers, bool isStackStart)
|
||||||
|
|
||||||
bool WinDebugger::SetHotJump(DbgSubprogram* oldSubprogram, addr_target newTarget, int newTargetSize)
|
bool WinDebugger::SetHotJump(DbgSubprogram* oldSubprogram, addr_target newTarget, int newTargetSize)
|
||||||
{
|
{
|
||||||
|
BfLogDbg("SetHotJump %s %p->%p\n", oldSubprogram->mName, oldSubprogram->mBlock.mLowPC, newTarget);
|
||||||
|
|
||||||
//AutoCrit autoCrit(mDebugManager->mCritSect);
|
//AutoCrit autoCrit(mDebugManager->mCritSect);
|
||||||
BF_ASSERT(mDebugManager->mCritSect.mLockCount == 1);
|
BF_ASSERT(mDebugManager->mCritSect.mLockCount == 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue