Fri Mar 29 16:09:54 CET 2002 Paolo Molaro <lupus@ximian.com>
[mono.git] / mono / metadata / debug-symfile.h
index b59a1f2940394ba3e53dfb87af8445a413187390..f4550289c976f1e9d8db2cb66466a3bebbd4ccc6 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <glib.h>
 #include <mono/metadata/class.h>
+#include <mono/metadata/reflection.h>
 
 typedef struct MonoDebugSymbolFile             MonoDebugSymbolFile;
 typedef struct MonoDebugSymbolFileSection      MonoDebugSymbolFileSection;
@@ -18,6 +19,7 @@ struct MonoDebugMethodInfo {
        gpointer code_start;
        guint32 code_size;
        guint32 num_params;
+       guint32 this_offset;
        guint32 *param_offsets;
        guint32 num_locals;
        guint32 *local_offsets;
@@ -37,6 +39,7 @@ struct MonoDebugSymbolFile {
        MonoImage *image;
        /* Pointer to the mmap()ed contents of the file. */
        void *raw_contents;
+       size_t raw_contents_size;
        /* Array of MONO_DEBUG_SYMBOL_SECTION_MAX elements. */
        MonoDebugSymbolFileSection *section_offsets;
        gpointer user_data;
@@ -48,7 +51,7 @@ struct MonoDebugSymbolFileSection {
        gulong size;
 };
 
-#define MONO_DEBUG_SYMBOL_FILE_VERSION                 4
+#define MONO_DEBUG_SYMBOL_FILE_VERSION                 7
 
 /* Keep in sync with Mono.CSharp.Debugger.MonoDwarfFileWriter.Section */
 #define MONO_DEBUG_SYMBOL_SECTION_DEBUG_INFO           0x01
@@ -78,5 +81,17 @@ void    mono_debug_update_symbol_file (MonoDebugSymbolFile      *symbol_file,
 
 void    mono_debug_close_symbol_file  (MonoDebugSymbolFile      *symbol_file);
 
+MonoReflectionType *
+ves_icall_Debugger_MonoSymbolWriter_get_local_type_from_sig (MonoReflectionAssembly *assembly,
+                                                            MonoArray *signature);
+
+MonoReflectionMethod *
+ves_icall_Debugger_MonoSymbolWriter_method_from_token (MonoReflectionAssembly *assembly,
+                                                      guint32 token);
+
+guint32
+ves_icall_Debugger_DwarfFileWriter_get_type_token (MonoReflectionType *type);
+
+
 #endif /* __MONO_DEBUG_SYMFILE_H__ */