2002-12-28 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Sat, 28 Dec 2002 14:25:10 +0000 (14:25 -0000)
committerMartin Baulig <martin@novell.com>
Sat, 28 Dec 2002 14:25:10 +0000 (14:25 -0000)
* debug.c (MonoDebuggerInfo): Added `symbol_file_modified'; it's
incremented each time one of the symbol tables is modified.

svn path=/trunk/mono/; revision=9946

mono/jit/ChangeLog
mono/jit/debug.c
mono/jit/debug.h

index dcb404917353923fbd713df00cfc4c80046a58da..4fb59e07f77f603765824803388b55e2c63d4ae7 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-28  Martin Baulig  <martin@ximian.com>
+
+       * debug.c (MonoDebuggerInfo): Added `symbol_file_modified'; it's
+       incremented each time one of the symbol tables is modified.
 
 Thu Dec 19 18:31:54 CET 2002 Paolo Molaro <lupus@ximian.com>
 
index b5dfb5ebae7f7ab84da195c1cd6868159c9022cd..8bbe4ea76a93e6ead8cb20dec503aa995aa63cf6 100644 (file)
@@ -20,6 +20,7 @@
  * copy of the symbol table, it must call debugger_update_symbol_file_table().
  */
 static guint32 debugger_symbol_file_table_generation = 0;
+static guint32 debugger_symbol_file_table_modified = 0;
 
 /* Caution: This variable may be accessed at any time from the debugger;
  *          it is very important not to modify the memory it is pointing to
@@ -52,6 +53,7 @@ MonoDebuggerInfo MONO_DEBUGGER__debugger_info = {
        &mono_generic_trampoline_code,
        &mono_breakpoint_trampoline_code,
        &debugger_symbol_file_table_generation,
+       &debugger_symbol_file_table_modified,
        &debugger_symbol_file_table,
        &debugger_update_symbol_file_table,
        &mono_compile_method,
@@ -925,8 +927,10 @@ mono_debug_add_type (MonoClass *klass)
        if (mono_debug_handle->format != MONO_DEBUG_FORMAT_MONO)
                return;
 
-       if (info->symfile)
+       if (info->symfile) {
                mono_debug_symfile_add_type (info->symfile, klass);
+               debugger_symbol_file_table_modified++;
+       }
 }
 
 static gint32
@@ -1090,8 +1094,10 @@ mono_debug_add_method (MonoFlowGraph *cfg)
                jit->locals = locals;
        }
 
-       if (info->symfile)
+       if (info->symfile) {
                mono_debug_symfile_add_method (info->symfile, method);
+               debugger_symbol_file_table_modified++;
+       }
 }
 
 gchar *
index 65faf79ac10943dad5d8e57d8748c578bfeb8b54..ca9c56a1824429aa830b5f996c19acc1336e34f9 100644 (file)
@@ -109,6 +109,7 @@ struct _MonoDebuggerInfo {
        guint8 **generic_trampoline_code;
        guint8 **breakpoint_trampoline_code;
        guint32 *symbol_file_generation;
+       guint32 *symbol_file_modified;
        MonoDebuggerSymbolFileTable **symbol_file_table;
        int (*update_symbol_file_table) (void);
        gpointer (*compile_method) (MonoMethod *method);