mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
source debug: Remove unused platform_port (#1403)
This commit is contained in:
parent
d41543f829
commit
5586f7b82d
|
@ -408,7 +408,6 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args)
|
|||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||
if (strlen(init_args->ip_addr))
|
||||
if (!wasm_debug_engine_init(init_args->ip_addr,
|
||||
init_args->platform_port,
|
||||
init_args->instance_port)) {
|
||||
wasm_runtime_destroy();
|
||||
return false;
|
||||
|
|
|
@ -137,7 +137,7 @@ typedef struct RuntimeInitArgs {
|
|||
/* Debug settings, only used when
|
||||
WASM_ENABLE_DEBUG_INTERP != 0 */
|
||||
char ip_addr[128];
|
||||
int platform_port;
|
||||
int unused; /* was platform_port */
|
||||
int instance_port;
|
||||
|
||||
/* Fast JIT code cache size */
|
||||
|
|
|
@ -17,7 +17,6 @@ typedef struct WASMDebugEngine {
|
|||
struct WASMDebugEngine *next;
|
||||
WASMDebugControlThread *control_thread;
|
||||
char ip_addr[128];
|
||||
int32 platform_port;
|
||||
int32 process_base_port;
|
||||
bh_list debug_instance_list;
|
||||
korp_mutex instance_list_lock;
|
||||
|
@ -290,7 +289,7 @@ wasm_debug_engine_destroy()
|
|||
}
|
||||
|
||||
bool
|
||||
wasm_debug_engine_init(char *ip_addr, int32 platform_port, int32 process_port)
|
||||
wasm_debug_engine_init(char *ip_addr, int32 process_port)
|
||||
{
|
||||
if (wasm_debug_handler_init() != 0) {
|
||||
return false;
|
||||
|
@ -302,8 +301,6 @@ wasm_debug_engine_init(char *ip_addr, int32 platform_port, int32 process_port)
|
|||
|
||||
if (g_debug_engine) {
|
||||
process_port -= 1;
|
||||
g_debug_engine->platform_port =
|
||||
platform_port > 0 ? platform_port : 1234;
|
||||
g_debug_engine->process_base_port =
|
||||
(process_port > 0) ? process_port : 0;
|
||||
if (ip_addr)
|
||||
|
|
|
@ -117,7 +117,7 @@ WASMDebugInstance *
|
|||
wasm_exec_env_get_instance(WASMExecEnv *exec_env);
|
||||
|
||||
bool
|
||||
wasm_debug_engine_init(char *ip_addr, int32 platform_port, int32 process_port);
|
||||
wasm_debug_engine_init(char *ip_addr, int32 process_port);
|
||||
|
||||
void
|
||||
wasm_debug_engine_destroy();
|
||||
|
|
|
@ -329,7 +329,6 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||
char *ip_addr = NULL;
|
||||
/* int platform_port = 0; */
|
||||
int instance_port = 0;
|
||||
#endif
|
||||
|
||||
|
@ -497,7 +496,6 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||
init_args.platform_port = 0;
|
||||
init_args.instance_port = instance_port;
|
||||
if (ip_addr)
|
||||
strcpy(init_args.ip_addr, ip_addr);
|
||||
|
|
|
@ -247,7 +247,6 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||
char *ip_addr = NULL;
|
||||
/* int platform_port = 0; */
|
||||
int instance_port = 0;
|
||||
#endif
|
||||
|
||||
|
@ -371,7 +370,6 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
#if WASM_ENABLE_DEBUG_INTERP != 0
|
||||
init_args.platform_port = 0;
|
||||
init_args.instance_port = instance_port;
|
||||
if (ip_addr)
|
||||
strcpy(init_args.ip_addr, ip_addr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user