diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-05-07 14:25:34 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-05-07 14:25:34 +0000 |
commit | ee793f0fcbd2d7e4ad08e61d242ba178e8909b45 (patch) | |
tree | 772607aa303278b216305ccf40fc88d76511edf2 /src/server | |
parent | a197e759ffcb047a383adf686966f68934fef206 (diff) | |
download | openocd_libswd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.tar.gz openocd_libswd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.tar.bz2 openocd_libswd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.tar.xz openocd_libswd-ee793f0fcbd2d7e4ad08e61d242ba178e8909b45.zip |
This matters for embedded devices, but is probably not observably better for PC hosted OpenOCD.
git-svn-id: svn://svn.berlios.de/openocd/trunk@647 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 7c28dc08..c2c18baf 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -1850,11 +1850,14 @@ static void gdb_log_callback(void *priv, const char *file, int line, gdb_output_con(connection, string); } +/* Do not allocate this on the stack */ +char gdb_packet_buffer[GDB_BUFFER_SIZE]; + int gdb_input_inner(connection_t *connection) { gdb_service_t *gdb_service = connection->service->priv; target_t *target = gdb_service->target; - char packet[GDB_BUFFER_SIZE]; + char *packet=gdb_packet_buffer; int packet_size; int retval; gdb_connection_t *gdb_con = connection->priv; |