Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Don't crash if we can't load a symbol file for some reason.
Browse files Browse the repository at this point in the history
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
Martin Baulig committed Nov 5, 2009
1 parent 9fb408f commit 6c06dde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions languages/mono/MonoLanguageBackend.cs
Expand Up @@ -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))
Expand Down

0 comments on commit 6c06dde

Please sign in to comment.