Permalink
Browse files

Don't crash if we can't load a symbol file for some reason.

2009-11-05  Martin Baulig  <martin@ximian.com>

	* languages/mono/MonoLanguageBackend.cs
	(MonoLanguageBackend.Notification): On `LoadModule': don't crash
	if load_symfile() failed.

svn path=/branches/mono-2-4-2/debugger/; revision=145526
  • Loading branch information...
1 parent 9fb408f commit 6c06ddee12d438b38bf848b5376664f7adf07e89 Martin Baulig committed Nov 5, 2009
Showing with 8 additions and 0 deletions.
  1. +6 −0 ChangeLog
  2. +2 −0 languages/mono/MonoLanguageBackend.cs
View
@@ -6,6 +6,12 @@
address of the callsite, so we can detect recursive invocations of
mono_generic_trampoline().
+2009-11-05 Martin Baulig <martin@ximian.com>
+
+ * languages/mono/MonoLanguageBackend.cs
+ (MonoLanguageBackend.Notification): On `LoadModule': don't crash
+ if load_symfile() failed.
+
2009-10-08 Martin Baulig <martin@ximian.com>
* build/mdb: Use the full pathname to invoke mono.
@@ -1400,6 +1400,8 @@ internal string GetShadowCopyLocation (string path)
MonoSymbolFile symfile = load_symfile (inferior, data);
Report.Debug (DebugFlags.JitSymtab,
"Module load: {0} {1}", data, symfile);
+ if (symfile == null)
+ break;
engine.Process.Debugger.OnModuleLoaded (symfile.Module);
if ((builtin_types != null) && (symfile != null)) {
if (engine.OnModuleLoaded (symfile.Module))

0 comments on commit 6c06dde

Please sign in to comment.