Permalink
Browse files

Small fix.

svn path=/trunk/debugger/; revision=56454
  • Loading branch information...
1 parent 8fa2298 commit 36e86415dac0801492054addff656c5a754433cc Martin Baulig committed Feb 2, 2006
Showing with 12 additions and 0 deletions.
  1. +7 −0 classes/SymbolTableException.cs
  2. +5 −0 classes/SymbolTableManager.cs
View
7 classes/SymbolTableException.cs
@@ -1,4 +1,5 @@
using System;
+using System.Runtime.Serialization;
namespace Mono.Debugger
{
@@ -8,5 +9,11 @@ public class SymbolTableException : TargetException
public SymbolTableException (string message, params object[] args)
: base (TargetError.SymbolTable, String.Format (message, args))
{ }
+
+
+ protected SymbolTableException (SerializationInfo info, StreamingContext context)
+ : base (info, context)
+ {
+ }
}
}
View
5 classes/SymbolTableManager.cs
@@ -105,6 +105,8 @@ public Method Lookup (TargetAddress address)
if (symtab_thread != null)
symtabs_loaded_event.WaitOne ();
lock (this) {
+ if (current_symtab == null)
+ return null;
return current_symtab.Lookup (address);
}
}
@@ -117,6 +119,9 @@ public Symbol SimpleLookup (TargetAddress address, bool exact_match)
}
lock (this) {
+ if (current_modules == null)
+ return null;
+
foreach (Module module in current_modules) {
Symbol name = module.SimpleLookup (address, exact_match);
if (name != null)

0 comments on commit 36e8641

Please sign in to comment.