Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / debug-mono-symfile.h
index 3b3459f32587e13e2589a4d0d1f3d7dbe12aa99a..cebc943d8506c23f7dd67db8f3fe9b4ab91b945d 100644 (file)
@@ -1,4 +1,5 @@
-/*
+/**
+ * \file
  * This header is only installed for use by the debugger:
  * the structures and the API declared here are not supported.
  * Copyright 2012 Xamarin Inc (http://www.xamarin.com)
@@ -12,6 +13,7 @@
 #include <mono/metadata/class.h>
 #include <mono/metadata/reflection.h>
 #include <mono/metadata/mono-debug.h>
+#include <mono/metadata/debug-internals.h>
 
 typedef struct MonoSymbolFileOffsetTable       MonoSymbolFileOffsetTable;
 typedef struct MonoSymbolFileLineNumberEntry   MonoSymbolFileLineNumberEntry;
@@ -71,58 +73,6 @@ struct MonoSymbolFileMethodAddress {
        uint8_t data [MONO_ZERO_LEN_ARRAY];
 };
 
-struct _MonoDebugMethodInfo {
-       MonoMethod *method;
-       MonoDebugHandle *handle;
-       uint32_t index;
-       uint32_t data_offset;
-       uint32_t lnt_offset;
-};
-
-typedef struct {
-       int parent;
-       int type;
-       /* IL offsets */
-       int start_offset, end_offset;
-} MonoDebugCodeBlock;
-
-typedef struct {
-       char *name;
-       int index;
-       /* Might be null for the main scope */
-       MonoDebugCodeBlock *block;
-} MonoDebugLocalVar;
-
-/*
- * Information about local variables retrieved from a symbol file.
- */
-struct _MonoDebugLocalsInfo {
-       int num_locals;
-       MonoDebugLocalVar *locals;
-       int num_blocks;
-       MonoDebugCodeBlock *code_blocks;
-};
-
-struct _MonoDebugLineNumberEntry {
-       uint32_t il_offset;
-       uint32_t native_offset;
-};
-
-/*
- * Information about a source file retrieved from a symbol file.
- */
-typedef struct {
-       char *source_file;
-       /* 16 byte long */
-       guint8 *guid, *hash;
-} MonoDebugSourceInfo;
-
-typedef struct {
-       int il_offset;
-       int line, column;
-       int end_line, end_column;
-} MonoSymSeqPoint;
-
 #define MONO_SYMBOL_FILE_MAJOR_VERSION         50
 #define MONO_SYMBOL_FILE_MINOR_VERSION         0
 #define MONO_SYMBOL_FILE_MAGIC                 0x45e82623fd7fa614ULL
@@ -158,9 +108,6 @@ mono_debug_symfile_lookup_locals (MonoDebugMethodInfo *minfo);
 void
 mono_debug_symfile_get_seq_points (MonoDebugMethodInfo *minfo, char **source_file, GPtrArray **source_file_list, int **source_files, MonoSymSeqPoint **seq_points, int *n_seq_points);
 
-gboolean
-mono_debug_image_has_debug_info (MonoImage *image);
-
 MONO_END_DECLS
 
 #endif /* __MONO_SYMFILE_H__ */