Author: martin
Date: 2007-06-19 11:10:16 -0400 (Tue, 19 Jun 2007)
New Revision: 80173
Modified:
branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.c
branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.h
branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
branches/martin/debugger-dublin/runtime/mini/debug-debugger.h
Log:
Remove old and unused code.
Modified: branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.c
===================================================================
--- branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.c
2007-06-19 15:09:56 UTC (rev 80172)
+++ branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.c
2007-06-19 15:10:16 UTC (rev 80173)
@@ -381,108 +381,13 @@
goto again;
}
-static GPtrArray *class_init_callbacks = NULL;
static GPtrArray *method_load_callbacks = NULL;
-typedef struct {
- guint64 index;
- gchar *name_space;
- gchar *name;
-} ClassInitCallback;
-
-MonoClass *
-mono_debugger_register_class_init_callback (MonoImage *image, guint64 index,
- const gchar *full_name)
-{
- ClassInitCallback *info;
- MonoClass *klass;
- gchar *name_space, *name, *pos;
-
- name = g_strdup (full_name);
-
- pos = strrchr (name, '.');
- if (pos) {
- name_space = name;
- *pos = 0;
- name = pos + 1;
- } else {
- name_space = NULL;
- }
-
- mono_loader_lock ();
-
- klass = mono_class_from_name (image, name_space ? name_space : "",
name);
- g_message (G_STRLOC ": %p - %s - %p", image, full_name, klass);
- if (klass && klass->inited) {
- mono_loader_unlock ();
- return klass;
- }
-
- info = g_new0 (ClassInitCallback, 1);
- info->index = index;
- info->name_space = name_space;
- info->name = name;
-
- if (!class_init_callbacks)
- class_init_callbacks = g_ptr_array_new ();
-
- g_ptr_array_add (class_init_callbacks, info);
- mono_loader_unlock ();
- return NULL;
-}
-
void
-mono_debugger_remove_class_init_callback (int index)
-{
- int i;
-
- if (!class_init_callbacks)
- return;
-
- for (i = 0; i < class_init_callbacks->len; i++) {
- ClassInitCallback *info = g_ptr_array_index
(class_init_callbacks, i);
-
- if (info->index != index)
- continue;
-
- g_ptr_array_remove (class_init_callbacks, info);
- if (info->name_space)
- g_free (info->name_space);
- else
- g_free (info->name);
- g_free (info);
- }
-}
-
-void
mono_debugger_add_type (MonoDebugHandle *symfile, MonoClass *klass)
{
- int i;
-
must_reload_symtabs = TRUE;
- if (!class_init_callbacks)
- return;
-
- for (i = 0; i < class_init_callbacks->len; i++) {
- ClassInitCallback *info = g_ptr_array_index
(class_init_callbacks, i);
-
- if (info->name_space && strcmp (info->name_space,
klass->name_space))
- continue;
- if (strcmp (info->name, klass->name))
- continue;
-
- mono_debugger_event (MONO_DEBUGGER_EVENT_CLASS_INITIALIZED,
- (guint64) (gsize) klass, info->index);
-
- g_ptr_array_remove (class_init_callbacks, info);
- if (info->name_space)
- g_free (info->name_space);
- else
- g_free (info->name);
- g_free (info);
- return;
- }
}
typedef struct {
Modified: branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.h
===================================================================
--- branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.h
2007-06-19 15:09:56 UTC (rev 80172)
+++ branches/martin/debugger-dublin/runtime/metadata/mono-debug-debugger.h
2007-06-19 15:10:16 UTC (rev 80173)
@@ -33,8 +33,7 @@
MONO_DEBUGGER_EVENT_THROW_EXCEPTION,
MONO_DEBUGGER_EVENT_HANDLE_EXCEPTION,
MONO_DEBUGGER_EVENT_REACHED_MAIN,
- MONO_DEBUGGER_EVENT_FINALIZE_MANAGED_CODE,
- MONO_DEBUGGER_EVENT_CLASS_INITIALIZED
+ MONO_DEBUGGER_EVENT_FINALIZE_MANAGED_CODE
} MonoDebuggerEvent;
struct _MonoDebuggerBreakpointInfo {
@@ -54,10 +53,6 @@
void mono_debugger_add_symbol_file (MonoDebugHandle
*handle);
void mono_debugger_add_type (MonoDebugHandle
*symfile, MonoClass *klass);
-MonoClass *mono_debugger_register_class_init_callback (MonoImage *image,
guint64 index,
- const gchar
*full_name);
-void mono_debugger_remove_class_init_callback (int index);
-
void mono_debugger_register_method_load_callback (guint64 index,
MonoMethod *method);
void mono_debugger_remove_method_load_callback (int index);
Modified: branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
===================================================================
--- branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
2007-06-19 15:09:56 UTC (rev 80172)
+++ branches/martin/debugger-dublin/runtime/mini/debug-debugger.c
2007-06-19 15:10:16 UTC (rev 80173)
@@ -26,12 +26,6 @@
#error "Some clown #defined MONO_DEBUGGER_SUPPORTED without USE_INCLUDED_GC -
fix configure.in!"
#endif
-static guint64 debugger_insert_breakpoint (guint64 index, G_GNUC_UNUSED
guint64 dummy_argument,
- const gchar *string_argument);
-static guint64 debugger_remove_breakpoint (guint64 breakpoint);
-static guint64 debugger_register_class_init_callback (guint64 index,
G_GNUC_UNUSED guint64 dummy,
- const gchar
*string_argument);
-static guint64 debugger_remove_class_init_callback (guint64 index);
static guint64 debugger_compile_method (guint64 method_arg);
static guint64 debugger_get_virtual_method (guint64 class_arg, guint64
method_arg);
static guint64 debugger_get_boxed_object (guint64 klass_arg, guint64 val_arg);
@@ -115,10 +109,6 @@
&debugger_compile_method,
&debugger_get_virtual_method,
&debugger_get_boxed_object,
- &debugger_insert_breakpoint,
- &debugger_remove_breakpoint,
- &debugger_register_class_init_callback,
- &debugger_remove_class_init_callback,
&mono_debugger_runtime_invoke,
&debugger_create_string,
&debugger_class_get_static_field_data,
@@ -136,42 +126,6 @@
};
static guint64
-debugger_insert_breakpoint (guint64 index, G_GNUC_UNUSED guint64
dummy_argument,
- const gchar *string_argument)
-{
- MonoMethodDesc *desc;
-
- desc = mono_method_desc_new (string_argument, TRUE);
- if (!desc)
- return 0;
-
- return (guint64) mono_debugger_insert_breakpoint_full (desc);
-}
-
-static guint64
-debugger_remove_breakpoint (guint64 breakpoint)
-{
- return mono_debugger_remove_breakpoint (breakpoint);
-}
-
-static guint64
-debugger_register_class_init_callback (guint64 image_arg, guint64 index,
- const gchar *string_argument)
-{
- MonoImage *image = (MonoImage *) GUINT_TO_POINTER ((gsize) image_arg);
-
- return (guint64) (gsize) mono_debugger_register_class_init_callback (
- image, index, string_argument);
-}
-
-static guint64
-debugger_remove_class_init_callback (guint64 index)
-{
- mono_debugger_remove_class_init_callback (index);
- return 0;
-}
-
-static guint64
debugger_compile_method (guint64 method_arg)
{
MonoMethod *method = (MonoMethod *) GUINT_TO_POINTER ((gsize)
method_arg);
Modified: branches/martin/debugger-dublin/runtime/mini/debug-debugger.h
===================================================================
--- branches/martin/debugger-dublin/runtime/mini/debug-debugger.h
2007-06-19 15:09:56 UTC (rev 80172)
+++ branches/martin/debugger-dublin/runtime/mini/debug-debugger.h
2007-06-19 15:10:16 UTC (rev 80173)
@@ -39,12 +39,6 @@
guint64 (*compile_method) (guint64 method_argument);
guint64 (*get_virtual_method) (guint64 object_argument, guint64
method_argument);
guint64 (*get_boxed_object_method) (guint64 klass_argument, guint64
val_argument);
- guint64 (*insert_breakpoint) (guint64 method_argument, G_GNUC_UNUSED
guint64 dummy_argument,
- const gchar *string_argument);
- guint64 (*remove_breakpoint) (guint64 breakpoint);
- guint64 (*register_class_init_callback) (guint64 image_arg, guint64
index,
- const gchar *string_argument);
- guint64 (*remove_class_init_callback) (guint64 index);
MonoInvokeFunc runtime_invoke;
guint64 (*create_string) (G_GNUC_UNUSED guint64 dummy1, G_GNUC_UNUSED
guint64 dummy2,
const gchar *string_argument);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches