Skip to content

Commit

Permalink
gdb_main: removed GDB_MAX_PACKET_SIZE because there is already GDB_PA…
Browse files Browse the repository at this point in the history
…CKET_BUFFER_SIZE define for gdb buffer size
  • Loading branch information
Misaka0x2730 committed Aug 27, 2024
1 parent 11d804d commit b197b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/gdb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ typedef enum gdb_signal {
GDB_SIGLOST = 29,
} gdb_signal_e;

#define GDB_MAX_PACKET_SIZE 1024U

#define ERROR_IF_NO_TARGET() \
if (!cur_target) { \
gdb_putpacketz("EFF"); \
Expand Down Expand Up @@ -456,7 +454,7 @@ static void exec_q_supported(const char *packet, const size_t length)

gdb_putpacket_f("PacketSize=%X;qXfer:memory-map:read+;qXfer:features:read+;"
"vContSupported+" GDB_QSUPPORTED_NOACKMODE,
GDB_MAX_PACKET_SIZE);
GDB_PACKET_BUFFER_SIZE);
}

static void exec_q_memory_map(const char *packet, const size_t length)
Expand Down
2 changes: 2 additions & 0 deletions src/include/gdb_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

#include "target.h"

#ifndef GDB_PACKET_BUFFER_SIZE
#define GDB_PACKET_BUFFER_SIZE 1024U
#endif

extern bool gdb_target_running;
extern target_s *cur_target;
Expand Down

0 comments on commit b197b91

Please sign in to comment.