mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-14 13:41:31 +00:00
debug-engine: constify several global variables (#1427)
This commit is contained in:
parent
29dee732e9
commit
fba12e9969
|
@ -11,7 +11,7 @@
|
||||||
#include "wasm_opcode.h"
|
#include "wasm_opcode.h"
|
||||||
#include "wasm_runtime.h"
|
#include "wasm_runtime.h"
|
||||||
|
|
||||||
static uint8 break_instr[] = { DEBUG_OP_BREAK };
|
static const uint8 break_instr[] = { DEBUG_OP_BREAK };
|
||||||
|
|
||||||
typedef struct WASMDebugEngine {
|
typedef struct WASMDebugEngine {
|
||||||
struct WASMDebugEngine *next;
|
struct WASMDebugEngine *next;
|
||||||
|
|
|
@ -18,7 +18,7 @@ struct packet_handler_elem {
|
||||||
|
|
||||||
#define DEL_HANDLER(r, h) [r] = { .request = r, .handler = h }
|
#define DEL_HANDLER(r, h) [r] = { .request = r, .handler = h }
|
||||||
|
|
||||||
static struct packet_handler_elem packet_handler_table[255] = {
|
static const struct packet_handler_elem packet_handler_table[255] = {
|
||||||
DEL_HANDLER('Q', handle_general_set),
|
DEL_HANDLER('Q', handle_general_set),
|
||||||
DEL_HANDLER('q', handle_general_query),
|
DEL_HANDLER('q', handle_general_query),
|
||||||
DEL_HANDLER('v', handle_v_packet),
|
DEL_HANDLER('v', handle_v_packet),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user