tree: cfc6fc5e4718579066469b576b0602cab983407e [path history] [tgz]
  1. automation_instruction.cc
  2. automation_instruction.h
  3. automation_instruction_unittests.cc
  4. BUILD.gn
  5. decode_exception.cc
  6. decode_exception.h
  7. decode_exception_unittests.cc
  8. filter_utils.cc
  9. filter_utils.h
  10. filter_utils_unittests.cc
  11. message_reader.cc
  12. message_reader.h
  13. message_unittests.cc
  14. message_writer.cc
  15. message_writer.h
  16. protocol.cc
  17. protocol.h
  18. protocol_unittests.cc
  19. README.md
  20. records.cc
  21. records.h
  22. unwinder_support.cc
  23. unwinder_support.h
src/developer/debug/ipc/README.md

Debug IPC

This is the shared IPC code between the debug agent (code in ../debug_agent) and the zxdb frontend (code in ../zxdb). It's not useful for other programs. Client debugging code should use the client debug library in ../zxdb/client.

This is a super simple custom IPC format because it is intended to be used between two computers (unlike FIDL) and called at a very low level when debugging the system (when higher-level primitives should be avoided). The goal is to replace it with a more robust IPC library when one is provided for the system that can communicate off-device.

Protocol information

  • Structs are defined with sized types and serialized little-endian such that they can be memcpy'd on little-endian machines.

  • Vectors are serialized as a 32-bit count followed by the number of records serialized in the normal manner.

  • Strings are serialized as a 32-bit size followed by that number of 8-bit characters. No encoding is specified, the data is not null terminated.