mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42: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
|
@ -340,6 +340,9 @@ namespace IDE.Debugger
|
|||
[CallingConvention(.Stdcall),CLink]
|
||||
static extern void Debugger_SetSymSrvOptions(char8* symCacheDir, char8* symSrvStr, int32 flags);
|
||||
|
||||
[CallingConvention(.Stdcall),CLink]
|
||||
static extern void Debugger_SetSourcePathRemap(char8* remapStr);
|
||||
|
||||
[CallingConvention(.Stdcall),CLink]
|
||||
static extern void Debugger_CancelSymSrv();
|
||||
|
||||
|
@ -469,6 +472,11 @@ namespace IDE.Debugger
|
|||
Debugger_SetSymSrvOptions(symCacheDir, symSrvStr, (int32)symSrvFlags);
|
||||
}
|
||||
|
||||
public void SetSourcePathRemap(String remapStr)
|
||||
{
|
||||
Debugger_SetSourcePathRemap(remapStr);
|
||||
}
|
||||
|
||||
public bool OpenMiniDump(String file)
|
||||
{
|
||||
mIsComptimeDebug = false;
|
||||
|
|
|
@ -250,6 +250,19 @@ namespace IDE
|
|||
}
|
||||
gApp.mDebugger.SetSymSrvOptions(mSymCachePath, symbolServerPath, .None);
|
||||
|
||||
String remapStr = scope .();
|
||||
for (var entry in mAutoFindPaths)
|
||||
{
|
||||
if (entry.Contains('@'))
|
||||
{
|
||||
if (!remapStr.IsEmpty)
|
||||
remapStr.Append("\n");
|
||||
remapStr.Append(entry);
|
||||
}
|
||||
}
|
||||
remapStr.Replace('@', '=');
|
||||
gApp.mDebugger.SetSourcePathRemap(remapStr);
|
||||
|
||||
mProfileSampleRate = Math.Clamp(mProfileSampleRate, 10, 10000);
|
||||
}
|
||||
|
||||
|
|
|
@ -320,7 +320,8 @@ namespace IDE.ui
|
|||
{
|
||||
for (let searchPath in gApp.mSettings.mDebuggerSettings.mAutoFindPaths)
|
||||
{
|
||||
SearchPath(searchPath);
|
||||
if (!searchPath.Contains('@'))
|
||||
SearchPath(searchPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue