2021-09-29 05:36:46 +00:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
|
2021-12-22 11:52:07 +00:00
|
|
|
int
|
|
|
|
wasm_debug_handler_init();
|
|
|
|
|
|
|
|
void
|
|
|
|
wasm_debug_handler_deinit();
|
|
|
|
|
2022-02-16 09:35:35 +00:00
|
|
|
void
|
|
|
|
handle_interrupt(WASMGDBServer *server);
|
|
|
|
|
2021-09-29 05:36:46 +00:00
|
|
|
void
|
2022-06-30 07:45:46 +00:00
|
|
|
handle_general_set(WASMGDBServer *server, char *payload);
|
2021-09-29 05:36:46 +00:00
|
|
|
|
|
|
|
void
|
2022-06-30 07:45:46 +00:00
|
|
|
handle_general_query(WASMGDBServer *server, char *payload);
|
2021-09-29 05:36:46 +00:00
|
|
|
|
|
|
|
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);
|
2022-02-16 09:35:35 +00:00
|
|
|
|
2022-11-02 09:12:34 +00:00
|
|
|
void
|
|
|
|
handle_detach_request(WASMGDBServer *server, char *payload);
|
|
|
|
|
2022-02-16 09:35:35 +00:00
|
|
|
void
|
|
|
|
send_thread_stop_status(WASMGDBServer *server, uint32 status, korp_tid tid);
|
2021-09-29 05:36:46 +00:00
|
|
|
#endif
|