packets.h 402 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (C) 2021 Ant Group. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef PACKETS_H
  6. #define PACKETS_H
  7. #include <stdint.h>
  8. #include <unistd.h>
  9. #include "gdbserver.h"
  10. bool
  11. read_packet(WASMGDBServer *gdbserver);
  12. void
  13. write_packet(WASMGDBServer *gdbserver, const char *data);
  14. void
  15. inbuf_erase_head(WASMGDBServer *gdbserver, ssize_t end);
  16. #endif