Skip to content

Commit

Permalink
Replace GetFile() with GetPEAssembly() call in gdb (#76321)
Browse files Browse the repository at this point in the history
Fixes #76291

Co-authored-by: Anthony Shaw <[email protected]>
  • Loading branch information
github-actions[bot] and tonybaloney authored Sep 28, 2022
1 parent 8546704 commit 10f8e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/vm/gdbjit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ GetDebugInfoFromPDB(MethodDesc* methodDescPtr,
return E_FAIL;

const Module* mod = methodDescPtr->GetMethodTable()->GetModule();
SString modName = mod->GetFile()->GetPath();
SString modName = mod->GetPEAssembly()->GetPath();
if (modName.IsEmpty())
return E_FAIL;

Expand Down Expand Up @@ -2533,7 +2533,7 @@ void NotifyGdb::OnMethodPrepared(MethodDesc* methodDescPtr)

/* Get module name */
const Module* mod = methodDescPtr->GetMethodTable()->GetModule();
SString modName = mod->GetFile()->GetPath();
SString modName = mod->GetPEAssembly()->GetPath();
const char* szModName = modName.GetUTF8();
const char* szModuleFile = SplitFilename(szModName);

Expand Down

0 comments on commit 10f8e71

Please sign in to comment.