mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
gdbstub:expand buffer size to increase transfer speed
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
e0bcad3a1d
commit
5817f6153d
2 changed files with 9 additions and 1 deletions
|
@ -17,4 +17,10 @@ config LIB_GDBSTUB_DEBUG
|
||||||
---help---
|
---help---
|
||||||
Add debug info to gdbstub
|
Add debug info to gdbstub
|
||||||
|
|
||||||
|
config LIB_GDBSTUB_PKTSIZE
|
||||||
|
int "Gdbstub packet size"
|
||||||
|
default 32768
|
||||||
|
---help---
|
||||||
|
The size of the gdbstub packet buffer.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
# define GDB_ASSERT() do {} while (0)
|
# define GDB_ASSERT() do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define BUFSIZE CONFIG_LIB_GDBSTUB_PKTSIZE
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
@ -66,7 +68,7 @@ struct gdb_state_s
|
||||||
FAR void *last_stopaddr; /* Last stop address */
|
FAR void *last_stopaddr; /* Last stop address */
|
||||||
pid_t pid; /* Gdb current thread */
|
pid_t pid; /* Gdb current thread */
|
||||||
FAR char *pkt_next; /* Pointer to next byte in packet */
|
FAR char *pkt_next; /* Pointer to next byte in packet */
|
||||||
char pkt_buf[1024]; /* Packet buffer */
|
char pkt_buf[BUFSIZE]; /* Packet buffer */
|
||||||
size_t pkt_len; /* Packet send and receive length */
|
size_t pkt_len; /* Packet send and receive length */
|
||||||
uint8_t running_regs[XCPTCONTEXT_SIZE]; /* Registers of running thread */
|
uint8_t running_regs[XCPTCONTEXT_SIZE]; /* Registers of running thread */
|
||||||
size_t size; /* Size of registers */
|
size_t size; /* Size of registers */
|
||||||
|
|
Loading…
Reference in a new issue