toolchain: add new debugging tool using magenta_debug

This commit is contained in:
2026-06-06 17:54:20 +01:00
parent 5bb36a916c
commit a6bdcc6c49
40 changed files with 2211 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "packet.h"
#include <stdlib.h>
struct packet *packet_create(size_t packet_size)
{
size_t real_packet_size = sizeof(struct packet) + packet_size
- sizeof(struct mxdbg_packet);
return calloc(1, packet_size);
}
void packet_destroy(struct packet *packet)
{
free(packet);
}