Skip to content

Commit

Permalink
Create pkt_sizes.h
Browse files Browse the repository at this point in the history
Collection of packet sizes taken from protocol.h
  • Loading branch information
a0zhar committed Apr 28, 2024
1 parent 908dd4a commit b448af5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions debugger/include/pkt_sizes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#pragma once
#ifndef _PACKET_SIZES_HH
#define _PACKET_SIZES_HH

#define CMD_PROC_READ_PACKET_SIZE 16
#define CMD_PROC_WRITE_PACKET_SIZE 16
#define CMD_PROC_MAPS_PACKET_SIZE 4
#define CMD_PROC_INSTALL_PACKET_SIZE 4
#define CMD_PROC_INSTALL_RESPONSE_SIZE 8
#define CMD_PROC_CALL_PACKET_SIZE 68
#define CMD_PROC_CALL_RESPONSE_SIZE 12
#define CMD_PROC_ELF_PACKET_SIZE 8
#define CMD_PROC_PROTECT_PACKET_SIZE 20
#define CMD_PROC_SCAN_PACKET_SIZE 10
#define CMD_PROC_INFO_PACKET_SIZE 4
#define CMD_PROC_INFO_RESPONSE_SIZE 188
#define CMD_PROC_ALLOC_PACKET_SIZE 8
#define CMD_PROC_ALLOC_RESPONSE_SIZE 8
#define CMD_PROC_FREE_PACKET_SIZE 16
#define CMD_DEBUG_ATTACH_PACKET_SIZE 4
#define CMD_DEBUG_BREAKPT_PACKET_SIZE 16
#define CMD_DEBUG_WATCHPT_PACKET_SIZE 24
#define CMD_DEBUG_STOPTHR_PACKET_SIZE 4
#define CMD_DEBUG_RESUMETHR_PACKET_SIZE 4
#define CMD_DEBUG_GETREGS_PACKET_SIZE 4
#define CMD_DEBUG_SETREGS_PACKET_SIZE 8
#define CMD_DEBUG_STOPGO_PACKET_SIZE 4
#define CMD_DEBUG_THRINFO_PACKET_SIZE 4
#define CMD_DEBUG_THRINFO_RESPONSE_SIZE 40
#define CMD_KERN_READ_PACKET_SIZE 12
#define CMD_KERN_WRITE_PACKET_SIZE 12
#define CMD_CONSOLE_PRINT_PACKET_SIZE 4
#define CMD_CONSOLE_NOTIFY_PACKET_SIZE 8
#define CMD_CONSOLE_INFO_RESPONSE_SIZE 8

#endif

0 comments on commit b448af5

Please sign in to comment.