少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef __DEBUG_INTERNALS_H__
#define __DEBUG_INTERNALS_H__
 
#include <glib.h>
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/mono-debug.h>
#include <mono/utils/mono-compiler.h>
 
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;
};
 
/*
* Information about method await yield and resume offsets retrieved from a symbol file.
*/
struct _MonoDebugMethodAsyncInfo {
    uint32_t catch_handler_offset;
    int num_awaits;
    uint32_t *yield_offsets;
    uint32_t *resume_offsets;
    uint32_t *move_next_method_token;
};
 
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;
 
void            mono_debugger_lock                          (void);
void            mono_debugger_unlock                        (void);
 
void
mono_debug_get_seq_points (MonoDebugMethodInfo *minfo, char **source_file, GPtrArray **source_file_list, int **source_files, MonoSymSeqPoint **seq_points, int *n_seq_points);
 
MONO_API void
mono_debug_free_locals (MonoDebugLocalsInfo *info);
 
void
mono_debug_free_method_async_debug_info (MonoDebugMethodAsyncInfo *info);
 
gboolean
mono_debug_image_has_debug_info (MonoImage *image);
 
MonoDebugSourceLocation *
mono_debug_lookup_source_location_by_il (MonoMethod *method, guint32 il_offset, MonoDomain *domain);
 
#endif /* __DEBUG_INTERNALS_H__ */