Author: martin
Date: 2007-01-19 10:52:02 -0500 (Fri, 19 Jan 2007)
New Revision: 71338

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/languages/mono/MonoLanguageBackend.cs
Log:
2007-01-19  Martin Baulig  <[EMAIL PROTECTED]>

        * languages/mono/MonoLanguageBackend.cs: Don't crash if we don't
        have a symbol table.  This might happen if we for instance attach
        to a mono process which is running without --debug.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2007-01-19 15:50:42 UTC (rev 71337)
+++ trunk/debugger/ChangeLog    2007-01-19 15:52:02 UTC (rev 71338)
@@ -1,5 +1,11 @@
 2007-01-19  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * languages/mono/MonoLanguageBackend.cs: Don't crash if we don't
+       have a symbol table.  This might happen if we for instance attach
+       to a mono process which is running without --debug.
+
+2007-01-19  Martin Baulig  <[EMAIL PROTECTED]>
+
        * classes/Backtrace.cs
        (Backtrace.Mode): New public enum.
        (Backtrace.GetBacktrace): Added `Mode mode' argument.

Modified: trunk/debugger/languages/mono/MonoLanguageBackend.cs
===================================================================
--- trunk/debugger/languages/mono/MonoLanguageBackend.cs        2007-01-19 
15:50:42 UTC (rev 71337)
+++ trunk/debugger/languages/mono/MonoLanguageBackend.cs        2007-01-19 
15:52:02 UTC (rev 71338)
@@ -383,6 +383,9 @@
                void do_update (TargetMemoryAccess memory)
                {
                        TargetAddress symtab_address = memory.ReadAddress 
(info.SymbolTable);
+                       if (symtab_address.IsNull)
+                               return;
+
                        TargetReader header = new TargetReader (
                                memory.ReadMemory (symtab_address, 
info.SymbolTableSize));
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to