Skip to content

Commit 40e3628

Browse files
committed
Remove unnecessary override for finding Windows entrypoint module
1 parent b98d8cd commit 40e3628

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/SOS/SOS.Extensions/ModuleServiceFromDebuggerServices.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -263,30 +263,6 @@ internal ModuleServiceFromDebuggerServices(IServiceProvider services, DebuggerSe
263263
_debuggerServices = debuggerServices;
264264
}
265265

266-
public override IModule EntryPointModule
267-
{
268-
get
269-
{
270-
foreach (IModule module in ((IModuleService)this).EnumerateModules())
271-
{
272-
if (Target.OperatingSystem == OSPlatform.Windows)
273-
{
274-
// The entry point module is not necessarily the first module in the sorted list of modules.
275-
if (module.FileName?.EndsWith(".exe", StringComparison.OrdinalIgnoreCase) == true)
276-
{
277-
return module;
278-
}
279-
}
280-
else
281-
{
282-
// On non-Windows, assume the entry point module is the first module.
283-
return module;
284-
}
285-
}
286-
return null;
287-
}
288-
}
289-
290266
/// <summary>
291267
/// Get/create the modules dictionary.
292268
/// </summary>

0 commit comments

Comments
 (0)