|
|
@ -184,7 +184,7 @@ namespace Debugger |
|
|
|
foreach (Process process in this.Processes) { |
|
|
|
foreach (Process process in this.Processes) { |
|
|
|
foreach(Module module in process.Modules) { |
|
|
|
foreach(Module module in process.Modules) { |
|
|
|
breakpoint.SetBreakpoint(module); |
|
|
|
breakpoint.SetBreakpoint(module); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -251,7 +251,7 @@ namespace Debugger |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Detach all processes.
|
|
|
|
// Detach all processes.
|
|
|
|
foreach(Process process in this.Processes) { |
|
|
|
foreach(Process process in this.Processes) { |
|
|
|
if (process == null || process.HasExited) |
|
|
|
if (process == null || process.HasExited) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
process.Detach(); |
|
|
|
process.Detach(); |
|
|
|
} |
|
|
|
} |
|
|
@ -266,9 +266,9 @@ namespace Debugger |
|
|
|
// this option overrides the others
|
|
|
|
// this option overrides the others
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (systemStartOptions.Contains("/debug") || |
|
|
|
if (systemStartOptions.Contains("/debug") || |
|
|
|
systemStartOptions.Contains("/crashdebug") || |
|
|
|
systemStartOptions.Contains("/crashdebug") || |
|
|
|
systemStartOptions.Contains("/debugport") || |
|
|
|
systemStartOptions.Contains("/debugport") || |
|
|
|
systemStartOptions.Contains("/baudrate")) { |
|
|
|
systemStartOptions.Contains("/baudrate")) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -287,7 +287,7 @@ namespace Debugger |
|
|
|
if (!isPaused) |
|
|
|
if (!isPaused) |
|
|
|
process.Break(); |
|
|
|
process.Break(); |
|
|
|
|
|
|
|
|
|
|
|
// We need to be paused for this
|
|
|
|
// We need to be paused for this
|
|
|
|
foreach(Module module in process.Modules) { |
|
|
|
foreach(Module module in process.Modules) { |
|
|
|
module.LoadSymbolsFromDisk(this.Options.SymbolsSearchPaths); |
|
|
|
module.LoadSymbolsFromDisk(this.Options.SymbolsSearchPaths); |
|
|
|
module.ResetJustMyCode(); |
|
|
|
module.ResetJustMyCode(); |
|
|
@ -346,6 +346,18 @@ namespace Debugger |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable] |
|
|
|
|
|
|
|
public class AppDomainEventArgs: DebuggerEventArgs |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
public AppDomain AppDomain { get; private set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AppDomainEventArgs(AppDomain appDomain) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
this.Process = appDomain.Process; |
|
|
|
|
|
|
|
this.AppDomain = appDomain; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Serializable] |
|
|
|
[Serializable] |
|
|
|
public class MessageEventArgs : EventArgs |
|
|
|
public class MessageEventArgs : EventArgs |
|
|
|
{ |
|
|
|
{ |
|
|
|