mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Fix a few redefinition warnings for WAMR_BUILD_DEBUG_INTERP=1 (#1256)
This commit is contained in:
parent
a67c1c1c01
commit
d5d6b7284d
|
@ -50,7 +50,7 @@ typedef struct WASMDebugExecutionMemory {
|
||||||
uint32 current_pos;
|
uint32 current_pos;
|
||||||
} WASMDebugExecutionMemory;
|
} WASMDebugExecutionMemory;
|
||||||
|
|
||||||
typedef struct WASMDebugInstance {
|
struct WASMDebugInstance {
|
||||||
struct WASMDebugInstance *next;
|
struct WASMDebugInstance *next;
|
||||||
WASMDebugControlThread *control_thread;
|
WASMDebugControlThread *control_thread;
|
||||||
bh_list break_point_list;
|
bh_list break_point_list;
|
||||||
|
@ -71,7 +71,7 @@ typedef struct WASMDebugInstance {
|
||||||
* during creating debug instance, and use a simple bump pointer allocator
|
* during creating debug instance, and use a simple bump pointer allocator
|
||||||
* to serve lldb's memory request */
|
* to serve lldb's memory request */
|
||||||
WASMDebugExecutionMemory exec_mem_info;
|
WASMDebugExecutionMemory exec_mem_info;
|
||||||
} WASMDebugInstance;
|
};
|
||||||
|
|
||||||
typedef enum WASMDebugEventKind {
|
typedef enum WASMDebugEventKind {
|
||||||
BREAK_POINT_ADD,
|
BREAK_POINT_ADD,
|
||||||
|
|
|
@ -20,7 +20,7 @@ extern "C" {
|
||||||
typedef struct WASMDebugInstance WASMDebugInstance;
|
typedef struct WASMDebugInstance WASMDebugInstance;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct WASMCluster {
|
struct WASMCluster {
|
||||||
struct WASMCluster *next;
|
struct WASMCluster *next;
|
||||||
|
|
||||||
korp_mutex lock;
|
korp_mutex lock;
|
||||||
|
@ -37,7 +37,7 @@ typedef struct WASMCluster {
|
||||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||||
WASMDebugInstance *debug_inst;
|
WASMDebugInstance *debug_inst;
|
||||||
#endif
|
#endif
|
||||||
} WASMCluster;
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
wasm_cluster_set_max_thread_num(uint32 num);
|
wasm_cluster_set_max_thread_num(uint32 num);
|
||||||
|
@ -151,11 +151,11 @@ wasm_cluster_spread_custom_data(WASMModuleInstanceCommon *module_inst,
|
||||||
#define IS_WAMR_STOP_SIG(signo) \
|
#define IS_WAMR_STOP_SIG(signo) \
|
||||||
((signo) == WAMR_SIG_STOP || (signo) == WAMR_SIG_TRAP)
|
((signo) == WAMR_SIG_STOP || (signo) == WAMR_SIG_TRAP)
|
||||||
|
|
||||||
typedef struct WASMCurrentEnvStatus {
|
struct WASMCurrentEnvStatus {
|
||||||
uint64 signal_flag : 32;
|
uint64 signal_flag : 32;
|
||||||
uint64 step_count : 16;
|
uint64 step_count : 16;
|
||||||
uint64 running_status : 16;
|
uint64 running_status : 16;
|
||||||
} WASMCurrentEnvStatus;
|
};
|
||||||
|
|
||||||
WASMCurrentEnvStatus *
|
WASMCurrentEnvStatus *
|
||||||
wasm_cluster_create_exenv_status();
|
wasm_cluster_create_exenv_status();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user