Skip to content

Commit

Permalink
Replace GetFile() with GetPEAssembly() call in gdb (#76293)
Browse files Browse the repository at this point in the history
Fixes #76291
  • Loading branch information
tonybaloney authored Sep 28, 2022
1 parent 620bc76 commit 91a07a7
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 91a07a7

Please sign in to comment.