X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fdebug-mono-symfile.h;h=cebc943d8506c23f7dd67db8f3fe9b4ab91b945d;hb=HEAD;hp=9decc58bad9598c54f242b1eea209a502fcf4a74;hpb=62cc262196951b67a13069444b889dc71758776c;p=mono.git diff --git a/mono/metadata/debug-mono-symfile.h b/mono/metadata/debug-mono-symfile.h index 9decc58bad9..cebc943d850 100644 --- a/mono/metadata/debug-mono-symfile.h +++ b/mono/metadata/debug-mono-symfile.h @@ -1,7 +1,9 @@ -/* +/** + * \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) + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_DEBUG_MONO_SYMFILE_H__ @@ -11,6 +13,7 @@ #include #include #include +#include typedef struct MonoSymbolFileOffsetTable MonoSymbolFileOffsetTable; typedef struct MonoSymbolFileLineNumberEntry MonoSymbolFileLineNumberEntry; @@ -70,52 +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; - #define MONO_SYMBOL_FILE_MAJOR_VERSION 50 #define MONO_SYMBOL_FILE_MINOR_VERSION 0 #define MONO_SYMBOL_FILE_MAGIC 0x45e82623fd7fa614ULL @@ -141,10 +98,6 @@ mono_debug_symfile_lookup_location (MonoDebugMethodInfo *minfo, MONO_API void mono_debug_symfile_free_location (MonoDebugSourceLocation *location); -int32_t -_mono_debug_address_from_il_offset (MonoDebugMethodJitInfo *jit, - uint32_t il_offset); - MONO_API MonoDebugMethodInfo * mono_debug_symfile_lookup_method (MonoDebugHandle *handle, MonoMethod *method); @@ -152,14 +105,8 @@ mono_debug_symfile_lookup_method (MonoDebugHandle *handle, MONO_API MonoDebugLocalsInfo* mono_debug_symfile_lookup_locals (MonoDebugMethodInfo *minfo); -MONO_API void -mono_debug_symfile_free_locals (MonoDebugLocalsInfo *info); - -MONO_API void -mono_debug_symfile_get_line_numbers (MonoDebugMethodInfo *minfo, char **source_file, int *n_il_offsets, int **il_offsets, int **line_numbers); - -MONO_API void -mono_debug_symfile_get_line_numbers_full (MonoDebugMethodInfo *minfo, char **source_file, GPtrArray **source_file_list, int *n_il_offsets, int **il_offsets, int **line_numbers, int **column_numbers, int **source_files, int **end_line_numbers, int **end_column_numbers); +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); MONO_END_DECLS