mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00

- use strict prototypes complained by GCC `-Wstrict-prototypes` - use `int*` instead of `int32*` Note: on some targets, int32_t is a long. for example, GCC shipped with the recent ESP-IDF has such a configuration. - https://github.com/apache/nuttx/issues/15755#issuecomment-2635652808 - https://github.com/apache/nuttx/pull/16022 - https://docs.espressif.com/projects/esp-idf/en/stable/esp32/migration-guides/release-5.x/5.0/gcc.html#espressif-toolchain-changes
71 lines
1.4 KiB
C
71 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2021 Ant Group. All rights reserved.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*/
|
|
|
|
#ifndef HANDLER_H
|
|
#define HANDLER_H
|
|
|
|
#include "gdbserver.h"
|
|
|
|
int
|
|
wasm_debug_handler_init(void);
|
|
|
|
void
|
|
wasm_debug_handler_deinit(void);
|
|
|
|
void
|
|
handle_interrupt(WASMGDBServer *server);
|
|
|
|
void
|
|
handle_general_set(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_general_query(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_v_packet(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_threadstop_request(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_set_current_thread(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_get_register(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_get_json_request(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_get_read_binary_memory(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_get_read_memory(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_get_write_memory(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_add_break(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_remove_break(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_continue_request(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_kill_request(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle____request(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
handle_detach_request(WASMGDBServer *server, char *payload);
|
|
|
|
void
|
|
send_thread_stop_status(WASMGDBServer *server, uint32 status, korp_tid tid);
|
|
#endif
|