2002-03-21 Martin Baulig <martin@gnome.org>
[mono.git] / mono / jit / debug.h
1 #ifndef __MONO_JIT_DEBUG_H__
2 #define __MONO_JIT_DEBUG_H__
3
4 #include <glib.h>
5 #include <stdio.h>
6 #include <mono/metadata/loader.h>
7 #include <mono/jit/jit.h>
8
9 typedef struct _MonoDebugHandle MonoDebugHandle;
10
11 typedef enum {
12         MONO_DEBUG_FORMAT_STABS,
13         MONO_DEBUG_FORMAT_DWARF2,
14         MONO_DEBUG_FORMAT_DWARF2_PLUS
15 } MonoDebugFormat;
16
17 extern MonoDebugHandle *mono_debug_handle;
18 extern GList *mono_debug_methods;
19
20 MonoDebugHandle* mono_debug_open_file (char *filename, MonoDebugFormat format);
21
22 void           mono_debug_close (MonoDebugHandle* debug);
23
24 void           mono_debug_add_method (MonoDebugHandle* debug, MonoFlowGraph *cfg);
25
26 void           mono_debug_add_type (MonoDebugHandle* debug, MonoClass *klass);
27
28 void           mono_debug_make_symbols (void);
29
30 #endif /* __MONO_JIT_DEBUG_H__ */