thermosphere: gdb: add debugManagerInit

This commit is contained in:
TuxSH committed 2020-02-04 19:12:23 +00:00
1 parent 057d3e5e1c
commit 1fd2cdb664
7 files changed
+85 -3

No files matched your search

+2
View File
@@ -43,6 +43,7 @@
#include "../watchpoints.h"
static TEMPORARY char g_gdbWorkBuffer[GDB_WORK_BUF_LEN];
static TEMPORARY char g_gdbBuffer[GDB_BUF_LEN + 4];
static const struct{
char command;
@@ -174,6 +175,7 @@ void GDB_InitializeContext(GDBContext *ctx, TransportInterfaceType ifaceType, u3
{
memset(ctx, 0, sizeof(GDBContext));
ctx->workBuffer = g_gdbWorkBuffer;
ctx->buffer = g_gdbBuffer;
ctx->transportInterface = transportInterfaceCreate(
ifaceType,
ifaceId,
+1 -1
View File
@@ -93,7 +93,7 @@ typedef struct GDBContext {
char *commandData, *commandEnd;
size_t lastSentPacketSize;
char buffer[GDB_BUF_LEN + 4];
char *buffer;
char *workBuffer;
} GDBContext;