mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Improved ability to locate source files from moved PDB
This commit is contained in:
parent
0aedc37d42
commit
d405104757
11 changed files with 162 additions and 8 deletions
|
@ -132,11 +132,11 @@ void DbgSymRequest::SearchLocal()
|
|||
return;
|
||||
}
|
||||
|
||||
uint8 outGuid[16];
|
||||
int32 outAge;
|
||||
if (mPDBRequested.IndexOf('\\') != -1) // Do we have an absolute path at all? System dlls won't.
|
||||
{
|
||||
// Check actual path
|
||||
uint8 outGuid[16];
|
||||
int32 outAge;
|
||||
if (CheckPDBData(mPDBRequested, outGuid, outAge))
|
||||
{
|
||||
mFinalPDBPath = mPDBRequested;
|
||||
|
@ -156,6 +156,18 @@ void DbgSymRequest::SearchLocal()
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
String checkPath = ::GetFileDir(mModulePath);
|
||||
checkPath += "\\";
|
||||
checkPath += mPDBRequested;
|
||||
|
||||
if (CheckPDBData(checkPath, outGuid, outAge))
|
||||
{
|
||||
mFinalPDBPath = checkPath;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
mMayBeOld = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue