Fri Jan 26 12:00:45 CET 2007 Paolo Molaro <lupus@ximian.com>
[mono.git] / mono / metadata / debug-mono-symfile.h
index 7e7019641203671f1cc785e66b479f42d0ae7518..67a125133d5475dbaa2b97bb32aa0f8f96e80181 100644 (file)
@@ -20,8 +20,6 @@ typedef struct MonoSymbolFileSourceEntry      MonoSymbolFileSourceEntry;
 typedef struct MonoSymbolFileMethodIndexEntry  MonoSymbolFileMethodIndexEntry;
 typedef struct MonoSymbolFileLexicalBlockEntry MonoSymbolFileLexicalBlockEntry;
 
-typedef struct MonoDebugMethodInfo             MonoDebugMethodInfo;
-
 /* Keep in sync with OffsetTable in mcs/class/Mono.CSharp.Debugger/MonoSymbolTable.cs */
 struct MonoSymbolFileOffsetTable {
        guint32 _total_file_size;
@@ -95,7 +93,7 @@ struct MonoSymbolFileLineNumberEntry {
        guint32 _offset;
 };
 
-struct MonoDebugMethodInfo {
+struct _MonoDebugMethodInfo {
        MonoMethod *method;
        MonoDebugHandle *handle;
        guint32 index;
@@ -126,30 +124,30 @@ struct _MonoSymbolFile {
        MonoSymbolFileOffsetTable *offset_table;
 };
 
-#define MONO_SYMBOL_FILE_VERSION               38
+#define MONO_SYMBOL_FILE_VERSION               39
 #define MONO_SYMBOL_FILE_MAGIC                 0x45e82623fd7fa614ULL
 
 G_BEGIN_DECLS
 
 MonoSymbolFile *
-mono_debug_open_mono_symbol_file   (MonoDebugHandle           *handle,
-                                   gboolean                   create_symfile);
+mono_debug_open_mono_symbols       (MonoDebugHandle          *handle,
+                                   const guint8             *raw_contents,
+                                   int                       size,
+                                   gboolean                  in_the_debugger);
 
 void
 mono_debug_close_mono_symbol_file  (MonoSymbolFile           *symfile);
 
-gchar *
-mono_debug_find_source_location    (MonoSymbolFile           *symfile,
-                                   MonoMethod               *method,
-                                   guint32                   offset,
-                                   guint32                  *line_number);
+MonoDebugSourceLocation *
+mono_debug_symfile_lookup_location (MonoDebugMethodInfo      *minfo,
+                                   guint32                   offset);
 
 gint32
 _mono_debug_address_from_il_offset (MonoDebugMethodJitInfo   *jit,
                                    guint32                   il_offset);
 
 MonoDebugMethodInfo *
-mono_debug_find_method             (MonoDebugHandle           *handle,
+mono_debug_symfile_lookup_method   (MonoDebugHandle          *handle,
                                    MonoMethod               *method);
 G_END_DECLS