summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index d85ea07..afe5289 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -22,6 +22,8 @@
#include <sys/cmd.h>
#include <sys/debug.h>
+#define WINNT_OUTBUF_SIZE 65536
+
#define winnt_error(msg) \
error("%s(): %s.",__FUNCTION__,msg)
@@ -38,7 +40,7 @@ struct winnt_process {
static size_t pcnt;
static winnt_process * plist;
-static char outbuf[256];
+static char * outbuf;
static winnt_process * winnt_plist_expand (void)
{
@@ -462,7 +464,8 @@ static target_ops * winnt_target_alloc (void)
x86_use_watchpoints(t);
- return t;
+ return ((outbuf = (char *)calloc(1,WINNT_OUTBUF_SIZE)))
+ ? t : 0;
}